From: Andre Przywara Date: Wed, 16 Nov 2016 00:50:06 +0000 (+0000) Subject: mtd: cfi_flash: fix indentation X-Git-Tag: v2017.01-rc1~35 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=58eab3287b0ea8e135617d2fb10e09d178d32c89;p=oweals%2Fu-boot.git 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 Reviewed-by: Stefan Roese --- 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)