From 61e3f49f69dce8deb1fa75ffe6fe41ea46d32d1a Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Wed, 13 Jun 2018 14:24:37 +0800 Subject: [PATCH] netif: Don't return error if pass NULL netif_input_fn to netif_add The new NULL checking against netif_input_fn make ppp stop working because in ppp_new() it calls netif_add with NULL netif_input_fn. Signed-off-by: Axel Lin Signed-off-by: Simon Goldschmidt --- src/core/netif.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/netif.c b/src/core/netif.c index c89811a1..5965bc5b 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -294,7 +294,6 @@ netif_add(struct netif *netif, LWIP_ERROR("netif_add: invalid netif", netif != NULL, return NULL); LWIP_ERROR("netif_add: No init function given", init != NULL, return NULL); - LWIP_ERROR("netif_add: No input function given", input != NULL, return NULL); #if LWIP_IPV4 if (ipaddr == NULL) {