diff options
author | Mario Six <mario.six@gdsys.cc> | 2018-01-26 14:43:45 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2018-01-29 07:48:58 +0100 |
commit | 9860137fbcbacfb91069194f9635af0ed8288456 (patch) | |
tree | a498e542a2e02557596d42303bf4595d61500ac4 /drivers/mtd/cfi_flash.c | |
parent | 9f720216b746f29606955baca9bf7211e35aaa53 (diff) | |
download | u-boot-midas-9860137fbcbacfb91069194f9635af0ed8288456.tar.gz u-boot-midas-9860137fbcbacfb91069194f9635af0ed8288456.tar.bz2 u-boot-midas-9860137fbcbacfb91069194f9635af0ed8288456.zip |
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>
Diffstat (limited to 'drivers/mtd/cfi_flash.c')
-rw-r--r-- | drivers/mtd/cfi_flash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 4c5e1568e6..5b3c071b30 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -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); } } |