bootp: remove unnecessary counter
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
f787f8fbf7
commit
8fe37b4e2e
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue