]> git.baikalelectronics.ru Git - uboot.git/commit
cfi_flash: Fix else after break
authorMario Six <mario.six@gdsys.cc>
Fri, 26 Jan 2018 13:43:45 +0000 (14:43 +0100)
committerStefan Roese <sr@denx.de>
Mon, 29 Jan 2018 06:48:58 +0000 (07:48 +0100)
commit12defeba6bac935585545d4612ffaf88a42fa901
treea498e542a2e02557596d42303bf4595d61500ac4
parentdf57b6631eaa6440cc084866d48916b0e7694577
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>
drivers/mtd/cfi_flash.c