diff --git a/net/bootp.c b/net/bootp.c index eaa80e268..200cb7df7 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 f5529f7ec..400187479 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 diff --git a/net/net.c b/net/net.c index 1fb9a3d6e..f2ef6cd33 100644 --- a/net/net.c +++ b/net/net.c @@ -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