mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-28 00:15:16 +00:00
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:
parent
46d7f6f95d
commit
ee8a05c3c7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user