diff mbox

[U-Boot] net: fix a regression in bootp.c

Message ID 1316435462-27241-1-git-send-email-helmut.raiger@hale.at
State Accepted
Headers show

Commit Message

Helmut Raiger Sept. 19, 2011, 12:31 p.m. UTC
This fixes a bug introduced by 093498669e77597635a24f326f11efeab213d394.
TftpStart() was not called unless the 'autoload' environment variable was set.

Signed-off-by: Helmut Raiger <helmut.raiger@hale.at>
---
 net/bootp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/net/bootp.c b/net/bootp.c
index 3db08ea..3157548 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -164,8 +164,9 @@  static void auto_load(void)
 			return;
 		}
 #endif
-	TftpStart();
 	}
+
+	TftpStart();
 }
 
 #if !defined(CONFIG_CMD_DHCP)