Patchwork [1/3] remove dead code from hw/loader.c

login
register
mail settings
Submitter jschopp@austin.ibm.com
Date July 21, 2010, 8:05 p.m.
Message ID <1279742717-10804-2-git-send-email-jschopp@austin.ibm.com>
Download mbox | patch
Permalink /patch/59494/
State New
Headers show

Comments

jschopp@austin.ibm.com - July 21, 2010, 8:05 p.m.
Removing dead code.  Above we already continued when
rom->addr + valuegreaterthan0 < addr so this condition is always false.

Signed-off-by: Joel Schopp <jschopp@austin.ibm.com>
---
 hw/loader.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

Patch

diff --git a/hw/loader.c b/hw/loader.c
index 79a6f95..49ac1fa 100644
--- a/hw/loader.c
+++ b/hw/loader.c
@@ -733,11 +733,6 @@  int rom_copy(uint8_t *dest, target_phys_addr_t addr, size_t size)
         s = rom->data;
         l = rom->romsize;
 
-        if (rom->addr < addr) {
-            d = dest;
-            s += (addr - rom->addr);
-            l -= (addr - rom->addr);
-        }
         if ((d + l) > (dest + size)) {
             l = dest - d;
         }