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

Helmut Raiger
2011-09-19T12:31:02Z

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 --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)
--
1.7.4.4

--
Scanned by MailScanner.