summaryrefslogtreecommitdiff
path: root/net/lwip/net-lwip.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/lwip/net-lwip.c')
-rw-r--r--net/lwip/net-lwip.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c
index 3918d57d7e5..8c6f057aab5 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;