summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-04-30 05:42:32 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-04-30 05:42:32 +0000
commite342f777e811a3d1660240265038f06e4a7be1de (patch)
treee43dcf25c9bad1ece2204b7325962115a7652925 /sys/dev/pci
parent9e0ac5726e8f1ca538de252a1f7776c41c836cdd (diff)
style
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_bge.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index f1fb41aea98..8b99d27ceb4 100644
--- a/sys/dev/pci/if_bge.c
+++ b/sys/dev/pci/if_bge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bge.c,v 1.142 2006/04/24 00:00:21 brad Exp $ */
+/* $OpenBSD: if_bge.c,v 1.143 2006/04/30 05:42:31 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -3086,12 +3086,12 @@ bge_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
switch(command) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
- if ((ifp->if_flags & IFF_RUNNING) == 0)
+ if (!(ifp->if_flags & IFF_RUNNING))
bge_init(sc);
#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->arpcom, ifa);
-#endif
+#endif /* INET */
break;
case SIOCSIFMTU:
if (ifr->ifr_mtu < ETHERMIN ||
@@ -3129,7 +3129,7 @@ bge_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
(ifp->if_flags ^ sc->bge_if_flags) & IFF_ALLMULTI) {
bge_setmulti(sc);
} else {
- if ((ifp->if_flags & IFF_RUNNING) == 0)
+ if (!(ifp->if_flags & IFF_RUNNING))
bge_init(sc);
}
} else {