mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-27 12:35:26 +00:00
Minor #ifdef cleanup in netif.c
This commit is contained in:
parent
89d825f603
commit
a942582b4b
@ -291,10 +291,8 @@ netif_add(struct netif *netif,
|
||||
if (gw == NULL) {
|
||||
gw = ip_2_ip4(IP4_ADDR_ANY);
|
||||
}
|
||||
#endif /* LWIP_IPV4 */
|
||||
|
||||
/* reset new interface configuration state */
|
||||
#if LWIP_IPV4
|
||||
ip_addr_set_zero_ip4(&netif->ip_addr);
|
||||
ip_addr_set_zero_ip4(&netif->netmask);
|
||||
ip_addr_set_zero_ip4(&netif->gw);
|
||||
|
Loading…
x
Reference in New Issue
Block a user