Skip to content
Snippets Groups Projects
Commit ae3565aa authored by Anton Vorontsov's avatar Anton Vorontsov Committed by Tom Rix
Browse files

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


The warning is bogus, so silence it by initializing the 'ret' variable.

Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: default avatarTimur Tabi <timur@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 20f02c3b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment