mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
cfi_flash: Fix else after break
If in a loop, the if block in a if/else statement ends in a break, the statements in the else blockcan be extracted, since the break stops the execution. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
9f720216b7
commit
9860137fbc
1 changed files with 3 additions and 3 deletions
|
@ -1826,9 +1826,9 @@ static int flash_detect_legacy(phys_addr_t base, int banknum)
|
|||
info->device_id2);
|
||||
if (jedec_flash_match(info, info->start[0]))
|
||||
break;
|
||||
else
|
||||
unmap_physmem((void *)info->start[0],
|
||||
info->portwidth);
|
||||
|
||||
unmap_physmem((void *)info->start[0],
|
||||
info->portwidth);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue