Remove LWIP_DHCP_CHECK_LINK_UP define as it's useless

See bug #54574

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
Simon Goldschmidt
2018-09-07 21:01:32 +02:00
parent 7749088a83
commit 93b2074f2b
2 changed files with 0 additions and 13 deletions

View File

@@ -784,14 +784,11 @@ dhcp_start(struct netif *netif)
}
dhcp->pcb_allocated = 1;
#if LWIP_DHCP_CHECK_LINK_UP
if (!netif_is_link_up(netif)) {
/* set state INIT and wait for dhcp_network_changed() to call dhcp_discover() */
dhcp_set_state(dhcp, DHCP_STATE_INIT);
return ERR_OK;
}
#endif /* LWIP_DHCP_CHECK_LINK_UP */
/* (re)start the DHCP negotiation */
result = dhcp_discover(netif);