diff options
author | Andre Przywara <andre.przywara@arm.com> | 2016-11-16 00:50:06 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-12-04 13:55:01 -0500 |
commit | 58eab3287b0ea8e135617d2fb10e09d178d32c89 (patch) | |
tree | d684cfa511cad7ce0c67f333a97f18b0f8c68264 /drivers/mtd | |
parent | ebb2c535852e7591c288aef7530fa24be32e3ec3 (diff) | |
download | u-boot-58eab3287b0ea8e135617d2fb10e09d178d32c89.tar.gz u-boot-58eab3287b0ea8e135617d2fb10e09d178d32c89.tar.xz u-boot-58eab3287b0ea8e135617d2fb10e09d178d32c89.zip |
mtd: cfi_flash: fix indentation
The indentation is misleading here and suggests that the write command
will be only executed in the else clause.
It seems like this is not intended, so fix the indentation to avoid
both compiler warnings and puzzled readers.
Pointed out by GCC 6.2's -Wmisleading-indentation warning.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/cfi_flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 33c4a9342f..e036b88a62 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -1456,8 +1456,8 @@ static int cfi_protect_bugfix(flash_info_t *info, long sector, int prot) cmd = FLASH_CMD_PROTECT_SET; else cmd = FLASH_CMD_PROTECT_CLEAR; - flash_write_cmd(info, sector, 0, - FLASH_CMD_PROTECT); + + flash_write_cmd(info, sector, 0, FLASH_CMD_PROTECT); flash_write_cmd(info, sector, 0, cmd); /* re-enable interrupts if necessary */ if (flag) |