summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/stmicro.c
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-07-29 22:43:57 +0530
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-08-07 01:05:06 +0530
commit5928b9a86514753b7b12ac528b3404114774aa9a (patch)
tree66715c41138ee6ca90899a80bf260875f75c99b9 /drivers/mtd/spi/stmicro.c
parent402ba1e3a0a6ccb100f84502f36774d6d4c3cec3 (diff)
downloadu-boot-imx-5928b9a86514753b7b12ac528b3404114774aa9a.zip
u-boot-imx-5928b9a86514753b7b12ac528b3404114774aa9a.tar.gz
u-boot-imx-5928b9a86514753b7b12ac528b3404114774aa9a.tar.bz2
sf: Fix code cleanups
- CHECK: Alignment should match open parenthesis - trailing whitespace Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'drivers/mtd/spi/stmicro.c')
-rw-r--r--drivers/mtd/spi/stmicro.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c
index e8cc827..c5fa64e 100644
--- a/drivers/mtd/spi/stmicro.c
+++ b/drivers/mtd/spi/stmicro.c
@@ -8,7 +8,7 @@
* Copyright (C) 2004-2007 Freescale Semiconductor, Inc.
* TsiChung Liew (Tsi-Chung.Liew@freescale.com)
*
- * SPDX-License-Identifier: GPL-2.0+
+ * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
@@ -166,8 +166,9 @@ struct spi_flash *spi_flash_probe_stmicro(struct spi_slave *spi, u8 *idcode)
idcode[0] = 0x20;
idcode[1] = 0x20;
idcode[2] = idcode[3] + 1;
- } else
+ } else {
return NULL;
+ }
}
id = ((idcode[1] << 8) | idcode[2]);