summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-04-02 20:12:59 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-04-02 20:12:59 +0000
commit21df3bf6ecd66592d445ccc184cb317fe29aee05 (patch)
tree14844c2b359bc76f03623520d1fab727e3229d17
parentd375f763b57b1bf821e19dababf5e3ff84892b1f (diff)
Return right away for unknown media types instead of falling
through and setting the half duplex flag. ok jsg@
-rw-r--r--sys/dev/mii/etphy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mii/etphy.c b/sys/dev/mii/etphy.c
index 4dea1698ea5..88b569f012a 100644
--- a/sys/dev/mii/etphy.c
+++ b/sys/dev/mii/etphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: etphy.c,v 1.3 2008/04/01 01:21:20 brad Exp $ */
+/* $OpenBSD: etphy.c,v 1.4 2008/04/02 20:12:58 brad Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
@@ -333,7 +333,7 @@ etphy_status(struct mii_softc *sc)
break;
default:
mii->mii_media_active |= IFM_NONE;
- break;
+ return;
}
if (sr & ETPHY_SR_FDX)