PPP, CORE, removed if_up and if6_up checks in sifdown() and sif6down()

It can't hurt us, checking is useless.
This commit is contained in:
Sylvain Rochet 2015-02-21 23:53:40 +01:00
parent 46d7f6f95d
commit ee8a05c3c7

View File

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