diff options
Diffstat (limited to 'lwip/port/netif/ifcommon.c')
-rw-r--r-- | lwip/port/netif/ifcommon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lwip/port/netif/ifcommon.c b/lwip/port/netif/ifcommon.c index 11ede76d..c6179683 100644 --- a/lwip/port/netif/ifcommon.c +++ b/lwip/port/netif/ifcommon.c @@ -75,7 +75,7 @@ if_init (struct netif * netif) { struct ifcommon *ifc = netif_get_state (netif); - if (netif == NULL) + if (ifc == NULL) /* The user provided no interface */ return -1; @@ -89,7 +89,7 @@ if_terminate (struct netif * netif) error_t err; struct ifcommon *ifc = netif_get_state (netif); - if (netif == NULL) + if (ifc == NULL) /* The user provided no interface */ return -1; |