diff options
author | phk <phk@FreeBSD.org> | 2005-01-05 22:28:24 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-01-05 22:28:24 +0000 |
commit | 5bbadf854674dc1ea6a3f997c0a681a18a1af508 (patch) | |
tree | 5078baf3e8715eb731cfb7f48ef567c2a941bac7 | |
parent | 372b1d2250b052f28f269d38fd33475ea9b0e032 (diff) | |
download | FreeBSD-src-5bbadf854674dc1ea6a3f997c0a681a18a1af508.zip FreeBSD-src-5bbadf854674dc1ea6a3f997c0a681a18a1af508.tar.gz |
Align if else if properly
-rw-r--r-- | sys/pci/if_sis.c | 10 |
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; |