提交 9c671e70 编写于 作者: A Anton Vorontsov 提交者: Kumar Gala

fsl: sys_eeprom: Fix 'may be used uninitialized' warning

The warning is bogus, so silence it by initializing the 'ret' variable.
Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: NTimur Tabi <timur@freescale.com>
Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
上级 6b9ea08c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册