* [Qemu-devel] [PATCH] Cleanup dead code
@ 2010-04-09 10:27 Jun Koi
2010-04-11 20:25 ` Blue Swirl
0 siblings, 1 reply; 2+ messages in thread
From: Jun Koi @ 2010-04-09 10:27 UTC (permalink / raw)
To: qemu-devel
This patch removes some dead code in exec.c
Signed-off-by: Jun Koi <junkoi2004@gmail.com>
diff --git a/exec.c b/exec.c
index 76163aa..43366ac 100644
--- a/exec.c
+++ b/exec.c
@@ -2884,15 +2884,12 @@ void *qemu_get_ram_ptr(ram_addr_t addr)
(typically a TLB entry) back to a ram offset. */
ram_addr_t qemu_ram_addr_from_host(void *ptr)
{
- RAMBlock *prev;
RAMBlock *block;
uint8_t *host = ptr;
- prev = NULL;
block = ram_blocks;
while (block && (block->host > host
|| block->host + block->length <= host)) {
- prev = block;
block = block->next;
}
if (!block) {
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] Cleanup dead code
2010-04-09 10:27 [Qemu-devel] [PATCH] Cleanup dead code Jun Koi
@ 2010-04-11 20:25 ` Blue Swirl
0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2010-04-11 20:25 UTC (permalink / raw)
To: Jun Koi; +Cc: qemu-devel
Thanks, applied.
On 4/9/10, Jun Koi <junkoi2004@gmail.com> wrote:
> This patch removes some dead code in exec.c
>
> Signed-off-by: Jun Koi <junkoi2004@gmail.com>
>
> diff --git a/exec.c b/exec.c
> index 76163aa..43366ac 100644
> --- a/exec.c
> +++ b/exec.c
> @@ -2884,15 +2884,12 @@ void *qemu_get_ram_ptr(ram_addr_t addr)
> (typically a TLB entry) back to a ram offset. */
> ram_addr_t qemu_ram_addr_from_host(void *ptr)
> {
> - RAMBlock *prev;
> RAMBlock *block;
> uint8_t *host = ptr;
>
> - prev = NULL;
> block = ram_blocks;
> while (block && (block->host > host
> || block->host + block->length <= host)) {
> - prev = block;
> block = block->next;
> }
> if (!block) {
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-11 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-09 10:27 [Qemu-devel] [PATCH] Cleanup dead code Jun Koi
2010-04-11 20:25 ` Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).