diff options
author | Joel Schopp <jschopp@austin.ibm.com> | 2010-07-21 15:05:15 -0500 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-07-30 23:05:51 +0200 |
commit | 61bca2942c94bcb1d763dd5fff8cdbd0a05e9ae0 (patch) | |
tree | 8cddd8c94ce784a22a492b72d9d56d5bb11c946d | |
parent | 69e58af92cf90a1a0551c73880928afa6753fa5f (diff) |
remove dead code from hw/loader.c
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>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r-- | hw/loader.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/loader.c b/hw/loader.c index 79a6f95186..49ac1fa1cc 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; } |