net: remove unused state NETLOOP_RESTART
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
5e29712041
commit
3487f1ee8e
|
@ -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;
|
||||
|
||||
|
|
|
@ -281,7 +281,6 @@ NetLoop(proto_t protocol)
|
|||
if (eth_open() < 0)
|
||||
return -1;
|
||||
|
||||
restart:
|
||||
string_to_ethaddr(dev_get_param(ð_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];
|
||||
|
|
Loading…
Reference in New Issue