diff options
Diffstat (limited to 'net/lwip')
-rw-r--r-- | net/lwip/net-lwip.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c index 3918d57d7e5..660ceb10cbe 100644 --- a/net/lwip/net-lwip.c +++ b/net/lwip/net-lwip.c @@ -184,16 +184,12 @@ int net_lwip_eth_start(void) int ret; net_init(); - if (eth_is_on_demand_init()) { + eth_halt(); + eth_set_current(); + ret = eth_init(); + if (ret < 0) { eth_halt(); - eth_set_current(); - ret = eth_init(); - if (ret < 0) { - eth_halt(); - return ret; - } - } else { - eth_init_state_only(); + return ret; } return 0; @@ -285,7 +281,6 @@ int net_init(void) if (!init_done) { eth_init_rings(); - eth_init(); lwip_init(); init_done = true; } |