mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
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>
This commit is contained in:
parent
69e58af92c
commit
61bca2942c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user