summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_sis.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_sis.c')
-rw-r--r--sys/pci/if_sis.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c
index 7c000a7..a933173 100644
--- a/sys/pci/if_sis.c
+++ b/sys/pci/if_sis.c
@@ -2196,12 +2196,10 @@ sis_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
sis_init(sc);
- } else {
- if (ifp->if_flags & IFF_RUNNING) {
- SIS_LOCK(sc);
- sis_stop(sc);
- SIS_UNLOCK(sc);
- }
+ } else if (ifp->if_flags & IFF_RUNNING) {
+ SIS_LOCK(sc);
+ sis_stop(sc);
+ SIS_UNLOCK(sc);
}
error = 0;
break;
OpenPOWER on IntegriCloud