diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-08-19 14:37:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-10-13 10:57:40 +0200 |
commit | 8fe37b4e2eb20ce789a8b5194b14b2818aae7402 (patch) | |
tree | 4c4f1ece9c244378175f62b792613834a5aaf499 /net | |
parent | f787f8fbf753d4cf00072a77e02fbf8d3ce02f35 (diff) | |
download | barebox-8fe37b4e2eb20ce789a8b5194b14b2818aae7402.tar.gz barebox-8fe37b4e2eb20ce789a8b5194b14b2818aae7402.tar.xz |
bootp: remove unnecessary counter
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/bootp.c | 3 | ||||
-rw-r--r-- | net/bootp.h | 1 | ||||
-rw-r--r-- | net/net.c | 2 |
3 files changed, 1 insertions, 5 deletions
diff --git a/net/bootp.c b/net/bootp.c index eaa80e2685..200cb7df71 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -45,7 +45,6 @@ #endif ulong BootpID; -int BootpTry; #ifdef CONFIG_BOOTP_RANDOM_DELAY ulong seed1, seed2; #endif @@ -533,7 +532,7 @@ BootpRequest (void) dhcp_state = INIT; #endif - printf("BOOTP broadcast %d\n", ++BootpTry); + printf("BOOTP broadcast\n"); pkt = NetTxPacket; memset ((void*)pkt, 0, PKTSIZE); diff --git a/net/bootp.h b/net/bootp.h index f5529f7ecc..4001874791 100644 --- a/net/bootp.h +++ b/net/bootp.h @@ -58,7 +58,6 @@ typedef struct /* bootp.c */ extern ulong BootpID; /* ID of cur BOOTP request */ extern char BootFile[128]; /* Boot file name */ -extern int BootpTry; #ifdef CONFIG_BOOTP_RANDOM_DELAY ulong seed1, seed2; /* seed for random BOOTP delay */ #endif @@ -317,14 +317,12 @@ int NetLoop(proto_t protocol) #ifdef CONFIG_NET_DHCP case DHCP: /* Start with a clean slate... */ - BootpTry = 0; NetOurIP = 0; DhcpRequest(); /* Basically same as BOOTP */ break; #endif #ifdef CONFIG_NET_BOOTP case BOOTP: - BootpTry = 0; BootpRequest (); break; #endif |