mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
net: guard call to tftp_start() with IS_ENABLED(CONFIG_CMD_TFTPBOOT)
net_auto_load() cannot call tftp_start() if CONFIG_CMD_TFTPBOOT is disabled. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
This commit is contained in:
committed by
Tom Rini
parent
ca55cf8104
commit
278e9ac8aa
@@ -334,8 +334,12 @@ void net_auto_load(void)
|
|||||||
net_set_state(NETLOOP_SUCCESS);
|
net_set_state(NETLOOP_SUCCESS);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (IS_ENABLED(CONFIG_CMD_TFTPBOOT)) {
|
||||||
if (net_check_prereq(TFTPGET)) {
|
if (net_check_prereq(TFTPGET)) {
|
||||||
/* We aren't expecting to get a serverip, so just accept the assigned IP */
|
/*
|
||||||
|
* We aren't expecting to get a serverip, so just
|
||||||
|
* accept the assigned IP
|
||||||
|
*/
|
||||||
if (IS_ENABLED(CONFIG_BOOTP_SERVERIP)) {
|
if (IS_ENABLED(CONFIG_BOOTP_SERVERIP)) {
|
||||||
net_set_state(NETLOOP_SUCCESS);
|
net_set_state(NETLOOP_SUCCESS);
|
||||||
} else {
|
} else {
|
||||||
@@ -346,6 +350,7 @@ void net_auto_load(void)
|
|||||||
}
|
}
|
||||||
tftp_start(TFTPGET);
|
tftp_start(TFTPGET);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static int net_init_loop(void)
|
static int net_init_loop(void)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user