9
0
Fork 0

net: remove unused state NETLOOP_RESTART

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2009-08-19 13:41:43 +02:00
parent 5e29712041
commit 3487f1ee8e
2 changed files with 2 additions and 8 deletions

View File

@ -297,9 +297,8 @@ extern void ArpRequest (void);
/* ------------------------------------ */
#define NETLOOP_CONTINUE 1
#define NETLOOP_RESTART 2
#define NETLOOP_SUCCESS 3
#define NETLOOP_FAIL 4
#define NETLOOP_SUCCESS 2
#define NETLOOP_FAIL 3
typedef enum { BOOTP, RARP, ARP, TFTP, DHCP, PING, DNS, NFS, CDP, NETCONS, SNTP } proto_t;

View File

@ -281,7 +281,6 @@ NetLoop(proto_t protocol)
if (eth_open() < 0)
return -1;
restart:
string_to_ethaddr(dev_get_param(&eth_get_current()->dev, "ethaddr"),
NetOurEther);
@ -403,10 +402,6 @@ restart:
switch (NetState) {
case NETLOOP_RESTART:
goto restart;
case NETLOOP_SUCCESS:
if (NetBootFileXferSize > 0) {
char buf[10];