From: Anton Vorontsov Date: Tue, 1 Sep 2009 22:17:24 +0000 (+0400) Subject: fsl: sys_eeprom: Fix 'may be used uninitialized' warning X-Git-Tag: v2010.09-rc1~28^2~7^2~42^2~156 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ae3565aac5b75145fc3a2e79e1080c09d3231ca7;p=u-boot 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 Acked-by: Timur Tabi Signed-off-by: Kumar Gala --- diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c index c0fff686b1..661015e000 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;