diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-08-17 21:37:45 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-08-17 21:37:45 +0000 |
commit | fc104a9f5b9c2f8f4e7496af7daa8646d436378f (patch) | |
tree | ef1c5383d898f20f10d6ce1a39369bdf081c3a99 /sys/dev/pci | |
parent | ee005c81e063f8765058163a40cb3085bd7087e9 (diff) |
cosmetic tweaks.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_msk.c | 5 | ||||
-rw-r--r-- | sys/dev/pci/if_sk.c | 9 |
2 files changed, 6 insertions, 8 deletions
diff --git a/sys/dev/pci/if_msk.c b/sys/dev/pci/if_msk.c index eeeb8bedee9..02f8f333513 100644 --- a/sys/dev/pci/if_msk.c +++ b/sys/dev/pci/if_msk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_msk.c,v 1.8 2006/08/17 21:31:37 brad Exp $ */ +/* $OpenBSD: if_msk.c,v 1.9 2006/08/17 21:37:44 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -1060,8 +1060,7 @@ msk_attach(struct device *parent, struct device *self, void *aux) ifmedia_add(&sc_if->sk_mii.mii_media, IFM_ETHER|IFM_MANUAL, 0, NULL); ifmedia_set(&sc_if->sk_mii.mii_media, IFM_ETHER|IFM_MANUAL); - } - else + } else ifmedia_set(&sc_if->sk_mii.mii_media, IFM_ETHER|IFM_AUTO); timeout_set(&sc_if->sk_tick_ch, msk_yukon_tick, sc_if); diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c index d29afe8ede9..11656cb1ad6 100644 --- a/sys/dev/pci/if_sk.c +++ b/sys/dev/pci/if_sk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sk.c,v 1.124 2006/08/17 21:31:37 brad Exp $ */ +/* $OpenBSD: if_sk.c,v 1.125 2006/08/17 21:37:44 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -929,8 +929,8 @@ sk_ioctl(struct ifnet *ifp, u_long command, caddr_t data) case SIOCSIFFLAGS: if (ifp->if_flags & IFF_UP) { if (ifp->if_flags & IFF_RUNNING && - ((ifp->if_flags ^ sc_if->sk_if_flags) - & IFF_PROMISC)) { + (ifp->if_flags ^ sc_if->sk_if_flags) + & IFF_PROMISC) { sk_setpromisc(sc_if); sk_setmulti(sc_if); } else { @@ -1294,8 +1294,7 @@ sk_attach(struct device *parent, struct device *self, void *aux) ifmedia_add(&sc_if->sk_mii.mii_media, IFM_ETHER|IFM_MANUAL, 0, NULL); ifmedia_set(&sc_if->sk_mii.mii_media, IFM_ETHER|IFM_MANUAL); - } - else + } else ifmedia_set(&sc_if->sk_mii.mii_media, IFM_ETHER|IFM_AUTO); if (SK_IS_GENESIS(sc)) { |