[PATCH] omap: nand remove unnecessary condition

Michael Grzeschik m.grzeschik at pengutronix.de
Tue Aug 17 04:52:26 EDT 2010


Signed-off-by: Michael Grzeschik <m.grzeschik at pengutronix.de>
---
 drivers/mtd/nand/nand_omap_gpmc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/nand_omap_gpmc.c b/drivers/mtd/nand/nand_omap_gpmc.c
index aef6820..7c9bc32 100644
--- a/drivers/mtd/nand/nand_omap_gpmc.c
+++ b/drivers/mtd/nand/nand_omap_gpmc.c
@@ -548,10 +548,9 @@ static int gpmc_nand_probe(struct device_d *pdev)
 		goto out_release_mem;
 	}
 
-	if (pdata->plat_options & NAND_HWECC_ENABLE)
+	if (pdata->plat_options & NAND_HWECC_ENABLE) {
 		nand->ecc.layout = layout;
 
-	if (pdata->plat_options & NAND_HWECC_ENABLE) {
 		/* Program how many columns we expect+
 		 * enable the cs we want and enable the engine
 		 */
-- 
1.7.1




More information about the barebox mailing list