public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/1] driver/mtd: Fix IFC compilation warnings
@ 2014-11-27  7:08 Jaiprakash Singh
  2014-12-11 19:29 ` York Sun
  0 siblings, 1 reply; 2+ messages in thread
From: Jaiprakash Singh @ 2014-11-27  7:08 UTC (permalink / raw)
  To: u-boot

From: Jaiprakash Singh <b44839@freescale.com>

'eccstat' array elements might be used uninitialized

Signed-off-by: Jaiprakash Singh <b44839@freescale.com>
---
 drivers/mtd/nand/fsl_ifc_nand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/fsl_ifc_nand.c b/drivers/mtd/nand/fsl_ifc_nand.c
index 81b5070..b283eae 100644
--- a/drivers/mtd/nand/fsl_ifc_nand.c
+++ b/drivers/mtd/nand/fsl_ifc_nand.c
@@ -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 */
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-11 19:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-27  7:08 [U-Boot] [PATCH 1/1] driver/mtd: Fix IFC compilation warnings Jaiprakash Singh
2014-12-11 19:29 ` York Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox