summaryrefslogtreecommitdiff
path: root/net/bootp.c
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-09-18 21:54:46 +0000
committerWolfgang Denk <wd@denx.de>2011-09-19 23:25:08 +0200
commit7aabad28044f031a8ed74af18999e893c1d9d49c (patch)
treef9216449b96cf5ac8e1d6da78b4bb52278f63ec2 /net/bootp.c
parent226502e01bc7ffa79dde28604075949f8f816cfc (diff)
downloadu-boot-imx-7aabad28044f031a8ed74af18999e893c1d9d49c.zip
u-boot-imx-7aabad28044f031a8ed74af18999e893c1d9d49c.tar.gz
u-boot-imx-7aabad28044f031a8ed74af18999e893c1d9d49c.tar.bz2
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>
Diffstat (limited to 'net/bootp.c')
-rw-r--r--net/bootp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bootp.c b/net/bootp.c
index 3db08ea..a003c42 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -164,8 +164,8 @@ static void auto_load(void)
return;
}
#endif
- TftpStart();
}
+ TftpStart();
}
#if !defined(CONFIG_CMD_DHCP)