mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-11 08:54:38 +08: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) {
|
if (gw == NULL) {
|
||||||
gw = ip_2_ip4(IP4_ADDR_ANY);
|
gw = ip_2_ip4(IP4_ADDR_ANY);
|
||||||
}
|
}
|
||||||
#endif /* LWIP_IPV4 */
|
|
||||||
|
|
||||||
/* reset new interface configuration state */
|
/* reset new interface configuration state */
|
||||||
#if LWIP_IPV4
|
|
||||||
ip_addr_set_zero_ip4(&netif->ip_addr);
|
ip_addr_set_zero_ip4(&netif->ip_addr);
|
||||||
ip_addr_set_zero_ip4(&netif->netmask);
|
ip_addr_set_zero_ip4(&netif->netmask);
|
||||||
ip_addr_set_zero_ip4(&netif->gw);
|
ip_addr_set_zero_ip4(&netif->gw);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user