]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cfi_flash: Add missing braces in blocks
authorMario Six <mario.six@gdsys.cc>
Fri, 26 Jan 2018 13:43:43 +0000 (14:43 +0100)
committerStefan Roese <sr@denx.de>
Mon, 29 Jan 2018 06:48:58 +0000 (07:48 +0100)
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>
drivers/mtd/cfi_flash.c

index 0a24e9173ae415ca58fedfe4ae35ff7b32e4fc2d..53842443ebb470a100b4ca610971fa8cf0fd07bb 100644 (file)
@@ -1154,10 +1154,12 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
                                st = flash_status_poll(info, &cword, dest,
                                                       info->erase_blk_tout, "erase");
                                flash_unmap(info, sect, 0, dest);
-                       } else
+                       } else {
                                st = flash_full_status_check(info, sect,
                                                             info->erase_blk_tout,
                                                             "erase");
+                       }
+
                        if (st)
                                rcode = 1;
                        else if (flash_verbose)