summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/e1000phy.c
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2009-09-28 19:48:17 +0000
committeryongari <yongari@FreeBSD.org>2009-09-28 19:48:17 +0000
commit898fa4c91506a5fc032c3f5b6112505e56aa74af (patch)
treef10aa15c8e20f27eda2b00cbe014630a643e8716 /sys/dev/mii/e1000phy.c
parentaf9841a11ed708fbb15ed44f80a21fa5232f95e5 (diff)
downloadFreeBSD-src-898fa4c91506a5fc032c3f5b6112505e56aa74af.zip
FreeBSD-src-898fa4c91506a5fc032c3f5b6112505e56aa74af.tar.gz
Don't encode model id twice.
Reported by: Kristof Provost <kristof <> sigsegv dot be>
Diffstat (limited to 'sys/dev/mii/e1000phy.c')
-rw-r--r--sys/dev/mii/e1000phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mii/e1000phy.c b/sys/dev/mii/e1000phy.c
index 4f2fa66..a4e505f 100644
--- a/sys/dev/mii/e1000phy.c
+++ b/sys/dev/mii/e1000phy.c
@@ -248,7 +248,7 @@ e1000phy_reset(struct mii_softc *sc)
}
}
- switch (MII_MODEL(esc->mii_model)) {
+ switch (esc->mii_model) {
case MII_MODEL_MARVELL_E3082:
case MII_MODEL_MARVELL_E1112:
case MII_MODEL_MARVELL_E1118:
OpenPOWER on IntegriCloud