summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2006-12-11 10:22:24 +0000
committeryongari <yongari@FreeBSD.org>2006-12-11 10:22:24 +0000
commit6cc7040ab6615a13254ece1d89e0ab8222492dfc (patch)
tree243c1bbfc5688ed2138b90513917931ebbe71f50 /sys
parent4f5910ebdf3da96076d18ac6459606528cf8eae2 (diff)
downloadFreeBSD-src-6cc7040ab6615a13254ece1d89e0ab8222492dfc.zip
FreeBSD-src-6cc7040ab6615a13254ece1d89e0ab8222492dfc.tar.gz
style(9)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mii/e1000phy.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/mii/e1000phy.c b/sys/dev/mii/e1000phy.c
index f020471..cfb91bf 100644
--- a/sys/dev/mii/e1000phy.c
+++ b/sys/dev/mii/e1000phy.c
@@ -62,8 +62,8 @@ __FBSDID("$FreeBSD$");
#include "miibus_if.h"
-static int e1000phy_probe(device_t);
-static int e1000phy_attach(device_t);
+static int e1000phy_probe(device_t);
+static int e1000phy_attach(device_t);
static device_method_t e1000phy_methods[] = {
/* device interface */
@@ -173,7 +173,7 @@ e1000phy_attach(device_t dev)
#undef ADD
MIIBUS_MEDIAINIT(sc->mii_dev);
- return(0);
+ return (0);
}
static void
@@ -244,9 +244,8 @@ e1000phy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
/*
* If the interface is not up, don't do anything.
*/
- if ((mii->mii_ifp->if_flags & IFF_UP) == 0) {
+ if ((mii->mii_ifp->if_flags & IFF_UP) == 0)
break;
- }
switch (IFM_SUBTYPE(ife->ifm_media)) {
case IFM_AUTO:
OpenPOWER on IntegriCloud