mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-29 16:10:24 +09:00
cfi_flash: Add missing braces in blocks
In if/else statements, either both blocks (if and else) should have braces or both blocks should not have braces, but mixed configurations are discouraged. Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
4f89da49e7
commit
12d7fed9b9
@ -1154,10 +1154,12 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
|
|||||||
st = flash_status_poll(info, &cword, dest,
|
st = flash_status_poll(info, &cword, dest,
|
||||||
info->erase_blk_tout, "erase");
|
info->erase_blk_tout, "erase");
|
||||||
flash_unmap(info, sect, 0, dest);
|
flash_unmap(info, sect, 0, dest);
|
||||||
} else
|
} else {
|
||||||
st = flash_full_status_check(info, sect,
|
st = flash_full_status_check(info, sect,
|
||||||
info->erase_blk_tout,
|
info->erase_blk_tout,
|
||||||
"erase");
|
"erase");
|
||||||
|
}
|
||||||
|
|
||||||
if (st)
|
if (st)
|
||||||
rcode = 1;
|
rcode = 1;
|
||||||
else if (flash_verbose)
|
else if (flash_verbose)
|
||||||
|
Loading…
Reference in New Issue
Block a user