summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-11-25 19:35:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-11-25 19:35:28 +0000
commit9956668272c024ad321925c1370ed1ccfee8b3d5 (patch)
tree724b064342b96c9837a82c3bbcbd1bdb06c8d154 /sys
parentb493bab65fa9dd5c00a0ccd59fbac18c2e410c68 (diff)
no warnings; jwoehr@advtech.uswest.com
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mii/iophy.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/mii/iophy.c b/sys/dev/mii/iophy.c
index a240e76e914..b5f24843b6b 100644
--- a/sys/dev/mii/iophy.c
+++ b/sys/dev/mii/iophy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iophy.c,v 1.3 1999/10/13 19:32:49 jason Exp $ */
+/* $OpenBSD: iophy.c,v 1.4 1999/11/25 19:35:27 deraadt Exp $ */
/* $NetBSD: iophy.c,v 1.1 1999/09/05 00:40:27 soren Exp $ */
/*
@@ -307,15 +307,16 @@ iophy_status(sc)
}
ext0 = PHY_READ(sc, MII_IOPHY_EXT0);
- if (ext0 & EXT0_SPEED)
+ if (ext0 & EXT0_SPEED) {
if (bmsr & BMSR_100T4) {
mii->mii_media_active |= IFM_100_T4;
return;
} else {
mii->mii_media_active |= IFM_100_TX;
}
- else
+ } else {
mii->mii_media_active |= IFM_10_T;
+ }
if (ext0 & EXT0_DUPLEX)
mii->mii_media_active |= IFM_FDX;