summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-05-30 05:08:30 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-05-30 05:08:30 +0000
commit437b26898ea1698e78b5314d57c6d67a363e88d7 (patch)
tree3d78308468609ae306f570a15d86f70fdba25506
parent3f1a3092215aad1ba0e359810c06546c1f5ea3f6 (diff)
some KNF.
-rw-r--r--sys/dev/mii/nsgphy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/mii/nsgphy.c b/sys/dev/mii/nsgphy.c
index d9b6419fcac..1d8214e09ff 100644
--- a/sys/dev/mii/nsgphy.c
+++ b/sys/dev/mii/nsgphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nsgphy.c,v 1.19 2008/04/02 22:14:29 kettenis Exp $ */
+/* $OpenBSD: nsgphy.c,v 1.20 2008/05/30 05:08:29 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 2001
@@ -129,7 +129,7 @@ nsgphyattach(struct device *parent, struct device *self, void *aux)
sc->mii_capabilities =
PHY_READ(sc, MII_BMSR) & ma->mii_capmask;
- if (sc->mii_capabilities & BMSR_EXTSTAT)
+ if (sc->mii_capabilities & BMSR_EXTSTAT)
sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR);
/*
@@ -145,9 +145,9 @@ nsgphyattach(struct device *parent, struct device *self, void *aux)
if (anar & ANAR_10_FD)
sc->mii_capabilities |= (BMSR_10TFDX & ma->mii_capmask);
- if ((sc->mii_capabilities & BMSR_MEDIAMASK) ||
- (sc->mii_extcapabilities & EXTSR_MEDIAMASK))
- mii_phy_add_media(sc);
+ if ((sc->mii_capabilities & BMSR_MEDIAMASK) ||
+ (sc->mii_extcapabilities & EXTSR_MEDIAMASK))
+ mii_phy_add_media(sc);
}
int