]> Git Repo - qemu.git/commitdiff
remove dead code from hw/loader.c
authorJoel Schopp <[email protected]>
Wed, 21 Jul 2010 20:05:15 +0000 (15:05 -0500)
committerAurelien Jarno <[email protected]>
Fri, 30 Jul 2010 21:05:51 +0000 (23:05 +0200)
Removing dead code.  Above we already continued when
rom->addr + valuegreaterthan0 < addr so this condition is always false.

Signed-off-by: Joel Schopp <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
hw/loader.c

index 79a6f95186ed2dd597c465eff2b5e201340ead0d..49ac1fa1ccd7945359853c5c11e88eeef26ee79f 100644 (file)
@@ -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;
         }
This page took 0.022088 seconds and 4 git commands to generate.