diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-04-02 20:12:59 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-04-02 20:12:59 +0000 |
commit | 21df3bf6ecd66592d445ccc184cb317fe29aee05 (patch) | |
tree | 14844c2b359bc76f03623520d1fab727e3229d17 | |
parent | d375f763b57b1bf821e19dababf5e3ff84892b1f (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.c | 4 |
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) |