Minor #ifdef cleanup in netif.c

This commit is contained in:
Dirk Ziegelmeier 2017-05-05 11:11:19 +02:00
parent 89d825f603
commit a942582b4b

View File

@ -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);