diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-09-02 02:17:24 +0400 |
---|---|---|
committer | Tom Rix <Tom.Rix@windriver.com> | 2009-10-03 09:04:15 -0500 |
commit | ae3565aac5b75145fc3a2e79e1080c09d3231ca7 (patch) | |
tree | 32fcc9538af1468d46ca46a854fe862369ff1cd7 /board/freescale/common | |
parent | 20f02c3b760d33f67378a9bcff177a8012cd6a17 (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 <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')
-rw-r--r-- | board/freescale/common/sys_eeprom.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |