Patchwork [v2,RESEND,3/5] exec.c: dead assignments

login
register
mail settings
Submitter Paolo Bonzini
Date Feb. 4, 2010, 1:31 p.m.
Message ID <1265290313-31738-4-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/44485/
State New
Headers show

Comments

Paolo Bonzini - Feb. 4, 2010, 1:31 p.m.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 exec.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

Patch

diff --git a/exec.c b/exec.c
index 76831a1..b2a1cf1 100644
--- a/exec.c
+++ b/exec.c
@@ -2489,17 +2489,13 @@  void *qemu_get_ram_ptr(ram_addr_t addr)
 ram_addr_t qemu_ram_addr_from_host(void *ptr)
 {
     RAMBlock *prev;
-    RAMBlock **prevp;
     RAMBlock *block;
     uint8_t *host = ptr;
 
     prev = NULL;
-    prevp = &ram_blocks;
     block = ram_blocks;
     while (block && (block->host > host
                      || block->host + block->length <= host)) {
-        if (prev)
-          prevp = &prev->next;
         prev = block;
         block = block->next;
     }