diff mbox

[U-Boot,1/1] driver/mtd: Fix IFC compilation warnings

Message ID 1417072092-11442-1-git-send-email-b44839@freescale.com
State Accepted
Delegated to: York Sun
Headers show

Commit Message

Jaiprakash Singh Nov. 27, 2014, 7:08 a.m. UTC
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(-)

Comments

York Sun Dec. 11, 2014, 7:29 p.m. UTC | #1
On 11/26/2014 11:08 PM, Jaiprakash Singh wrote:
> From: Jaiprakash Singh <b44839@freescale.com>
> 
> 'eccstat' array elements might be used uninitialized
> 
> Signed-off-by: Jaiprakash Singh <b44839@freescale.com>
> ---

Applied to u-boot-fsl-qoriq master, awaiting upstream.

York
diff mbox

Patch

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 */