summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Vorontsov <[email protected]>2009-09-02 02:17:24 +0400
committerTom Rix <[email protected]>2009-10-03 09:04:15 -0500
commitae3565aac5b75145fc3a2e79e1080c09d3231ca7 (patch)
tree32fcc9538af1468d46ca46a854fe862369ff1cd7
parent20f02c3b760d33f67378a9bcff177a8012cd6a17 (diff)
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 <[email protected]> Acked-by: Timur Tabi <[email protected]> Signed-off-by: Kumar Gala <[email protected]>
-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 c0fff686b1c..661015e0006 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;