From 9c671e7062720074f894ee329eaa6995b0823727 Mon Sep 17 00:00:00 2001 From: Anton Vorontsov Date: Wed, 2 Sep 2009 02:17:24 +0400 Subject: [PATCH] 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 --- board/freescale/common/sys_eeprom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.25.1