Commit 7aabad28 authored by Peter Korsgaard's avatar Peter Korsgaard Committed by Wolfgang Denk
Browse files

net/bootp.c: fix tftp load if autoload environment var isn't set

Commit 09349866

 (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: default avatarPeter Korsgaard <jacmet@sunsite.dk>
Tested-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 226502e0
......@@ -164,8 +164,8 @@ static void auto_load(void)
return;
}
#endif
TftpStart();
}
TftpStart();
}
#if !defined(CONFIG_CMD_DHCP)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment