mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-29 18:41:37 +02:00
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>
This commit is contained in:
parent
20f02c3b76
commit
ae3565aac5
@ -204,7 +204,8 @@ static void update_crc(void)
|
|||||||
*/
|
*/
|
||||||
static int prog_eeprom(void)
|
static int prog_eeprom(void)
|
||||||
{
|
{
|
||||||
int ret, i;
|
int ret = 0; /* shut up gcc */
|
||||||
|
int i;
|
||||||
void *p;
|
void *p;
|
||||||
#ifdef CONFIG_SYS_EEPROM_BUS_NUM
|
#ifdef CONFIG_SYS_EEPROM_BUS_NUM
|
||||||
unsigned int bus;
|
unsigned int bus;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user