summaryrefslogtreecommitdiff
path: root/board/freescale/common/sys_eeprom.c
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2009-09-02 02:17:24 +0400
committerKumar Gala <galak@kernel.crashing.org>2009-09-08 09:10:03 -0500
commit9c671e7062720074f894ee329eaa6995b0823727 (patch)
treee6dd184bcee079ee4ef927f00aeec5e530de91db /board/freescale/common/sys_eeprom.c
parent6b9ea08c5010eab5ad1056bc9bf033afb672d9cc (diff)
downloadu-boot-imx-9c671e7062720074f894ee329eaa6995b0823727.zip
u-boot-imx-9c671e7062720074f894ee329eaa6995b0823727.tar.gz
u-boot-imx-9c671e7062720074f894ee329eaa6995b0823727.tar.bz2
fsl: sys_eeprom: Fix 'may be used uninitialized' warning
The warning is bogus, so silence it by initializing the 'ret' variable. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Acked-by: Timur Tabi <timur@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/common/sys_eeprom.c')
-rw-r--r--board/freescale/common/sys_eeprom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c
index c0fff68..661015e 100644
--- a/board/freescale/common/sys_eeprom.c
+++ b/board/freescale/common/sys_eeprom.c
@@ -204,7 +204,8 @@ static void update_crc(void)
*/
static int prog_eeprom(void)
{
- int ret, i;
+ int ret = 0; /* shut up gcc */
+ int i;
void *p;
#ifdef CONFIG_SYS_EEPROM_BUS_NUM
unsigned int bus;