diff options
author | Sascha Hauer <sha@pengutronix.de> | 2009-10-17 09:10:39 +0200 |
---|---|---|
committer | Sascha Hauer <sha@pengutronix.de> | 2009-10-17 09:10:39 +0200 |
commit | e8b856dc03af9368bdc2565982ce3012ea15c106 (patch) | |
tree | 5df908fc3ca2988b04cfd454db8d17956de0b3f2 /net | |
parent | fdc9bd236ef09c603a7937cadfc018bc8439a98b (diff) | |
download | barebox-e8b856dc03af9368bdc2565982ce3012ea15c106.tar.gz barebox-e8b856dc03af9368bdc2565982ce3012ea15c106.tar.xz |
remove unused code
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/tftp.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/net/tftp.c b/net/tftp.c index 72a31d9892..0c7e8e6194 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -281,9 +281,6 @@ void TftpStart (void) { char ip1[16], ip2[16]; -#ifdef CONFIG_TFTP_PORT - char *ep; /* Environment pointer */ -#endif tftp_filename = BootFile; @@ -300,14 +297,6 @@ TftpStart (void) TftpState = STATE_RRQ; /* Use a pseudo-random port unless a specific port is set */ TftpOurPort = 1024 + ((unsigned int)get_time_ns() % 3072); -#ifdef CONFIG_TFTP_PORT - if ((ep = getenv("tftpdstp")) != NULL) { - TftpServerPort = simple_strtol(ep, NULL, 10); - } - if ((ep = getenv("tftpsrcp")) != NULL) { - TftpOurPort= simple_strtol(ep, NULL, 10); - } -#endif TftpBlock = 0; /* zero out server ether in case the server ip has changed */ |