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 <>
Tested-by: default avatarFabio Estevam <>
Acked-by: default avatarSimon Glass <>
parent 226502e0
......@@ -164,8 +164,8 @@ static void auto_load(void)
#if !defined(CONFIG_CMD_DHCP)
Supports Markdown
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