From: Jaiprakash Singh Date: Thu, 27 Nov 2014 07:08:12 +0000 (+0530) Subject: driver/mtd: Fix IFC compilation warnings X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1d421cc6773dd9090e8b9202a24038561a28e56c;p=project%2Fbcm63xx%2Fu-boot.git driver/mtd: Fix IFC compilation warnings 'eccstat' array elements might be used uninitialized Signed-off-by: Jaiprakash Singh Reviewed-by: York Sun --- diff --git a/drivers/mtd/nand/fsl_ifc_nand.c b/drivers/mtd/nand/fsl_ifc_nand.c index 81b5070b54..b283eaea34 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 */