diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-02-09 03:31:45 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-02-09 03:31:45 +0000 |
commit | 5e619bbdd77182ddef40436025aa6f317e6c8733 (patch) | |
tree | 9224e45be6bc4dd271eadeca54d25e55f1768dee /sys/dev/pci/if_bge.c | |
parent | f3668941add136c37229ec563a5ea483eb95f5e6 (diff) |
cleaning.
Diffstat (limited to 'sys/dev/pci/if_bge.c')
-rw-r--r-- | sys/dev/pci/if_bge.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 5d946e28265..27413c4ca8f 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.130 2006/02/09 01:17:24 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.131 2006/02/09 03:31:44 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -631,17 +631,15 @@ bge_miibus_statchg(struct device *dev) struct mii_data *mii = &sc->bge_mii; BGE_CLRBIT(sc, BGE_MAC_MODE, BGE_MACMODE_PORTMODE); - if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) { + if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) BGE_SETBIT(sc, BGE_MAC_MODE, BGE_PORTMODE_GMII); - } else { + else BGE_SETBIT(sc, BGE_MAC_MODE, BGE_PORTMODE_MII); - } - if ((mii->mii_media_active & IFM_GMASK) == IFM_FDX) { + if ((mii->mii_media_active & IFM_GMASK) == IFM_FDX) BGE_CLRBIT(sc, BGE_MAC_MODE, BGE_MACMODE_HALF_DUPLEX); - } else { + else BGE_SETBIT(sc, BGE_MAC_MODE, BGE_MACMODE_HALF_DUPLEX); - } } /* |