mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 01:23:48 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user