diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-02-15 14:53:57 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-02-15 14:53:57 +0000 |
commit | 27bbdeed3a95c32e4357f3c8d48eae4c806c6c53 (patch) | |
tree | bbe4eae4bd030e3995b6d0ad641a134a71426970 | |
parent | 06339a5fd2eb3c0652ff94739a27630c4715575b (diff) |
be gone whitespace.
-rw-r--r-- | sys/dev/pci/if_em.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index 98a2d0d53cc..9f0368ea4b5 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ -/* $OpenBSD: if_em.c,v 1.104 2006/02/10 09:12:25 brad Exp $ */ +/* $OpenBSD: if_em.c,v 1.105 2006/02/15 14:53:56 brad Exp $ */ /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */ #include <dev/pci/if_em.h> @@ -1242,25 +1242,25 @@ void em_update_link_status(struct em_softc *sc) { struct ifnet *ifp = &sc->interface_data.ac_if; - if (E1000_READ_REG(&sc->hw, STATUS) & E1000_STATUS_LU) { - if (sc->link_active == 0) { - em_get_speed_and_duplex(&sc->hw, - &sc->link_speed, - &sc->link_duplex); - sc->link_active = 1; - sc->smartspeed = 0; + if (E1000_READ_REG(&sc->hw, STATUS) & E1000_STATUS_LU) { + if (sc->link_active == 0) { + em_get_speed_and_duplex(&sc->hw, + &sc->link_speed, + &sc->link_duplex); + sc->link_active = 1; + sc->smartspeed = 0; ifp->if_link_state = LINK_STATE_UP; if_link_state_change(ifp); - } - } else { - if (sc->link_active == 1) { - sc->link_speed = 0; - sc->link_duplex = 0; - sc->link_active = 0; + } + } else { + if (sc->link_active == 1) { + sc->link_speed = 0; + sc->link_duplex = 0; + sc->link_active = 0; ifp->if_link_state = LINK_STATE_DOWN; if_link_state_change(ifp); - } - } + } + } } /********************************************************************* |