mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
net/bootp.c: fix tftp load if autoload environment var isn't set
Commit 093498669 (Put common autoload code into auto_load() function) broke handling of autoload environment variable not being set. The bootp/dhcp code will just keep on requesting IP address forever and never start TFTP download. Fix it by moving TftpStart() outside the conditional like it was before. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Tested-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
226502e01b
commit
7aabad2804
@ -164,8 +164,8 @@ static void auto_load(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
TftpStart();
|
|
||||||
}
|
}
|
||||||
|
TftpStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(CONFIG_CMD_DHCP)
|
#if !defined(CONFIG_CMD_DHCP)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user