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
@ -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 New Issue
Block a user