Skip to contentSkip to conversation

driver/mtd: Fix IFC compilation warnings

PATCH New Jaiprakash Singh 2 participants 2 messages Nov 27, 2014 – Dec 11, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 driver/mtd: Fix IFC compilation warnings

From: Jaiprakash Singh <[email protected]>

'eccstat' array elements might be used uninitialized

---
 drivers/mtd/nand/fsl_ifc_nand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/fsl_ifc_nand.c +1 -1
index 81b5070..b283eae 100644
@@ -292,7 +292,7 @@ static int fsl_ifc_run_command(struct mtd_info *mtd)
 	struct fsl_ifc *ifc = ctrl->regs;
 	u32 timeo = (CONFIG_SYS_HZ * 10) / 1000;
 	u32 time_start;
-	u32 eccstat[4];
+	u32 eccstat[4] = {0};
 	int i;
 
 	/* set the chip select for NAND Transaction */
Signature · 1 line
1.7.9.5