mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01: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…
Add table
Reference in a new issue