From ee8a05c3c74caa8b7402bffde81b21a63719a033 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sat, 21 Feb 2015 23:53:40 +0100 Subject: [PATCH] PPP, CORE, removed if_up and if6_up checks in sifdown() and sif6down() It can't hurt us, checking is useless. --- src/netif/ppp/ppp.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index eecf1097..a8c163ae 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -974,9 +974,6 @@ int sifup(ppp_pcb *pcb) { */ int sifdown(ppp_pcb *pcb) { - if(!pcb->if_up) - return 1; - pcb->if_up = 0; if (1 @@ -1017,9 +1014,6 @@ int sif6up(ppp_pcb *pcb) { */ int sif6down(ppp_pcb *pcb) { - if(!pcb->if6_up) - return 1; - pcb->if6_up = 0; /* set the interface down if IPv4 is down as well */ if (!pcb->if_up) {