summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2004-12-17 02:26:28 +0000
committerBrad Smith <brad@cvs.openbsd.org>2004-12-17 02:26:28 +0000
commit23b9033345d4e6f69b43263c883ed9e27e333c28 (patch)
tree7a62c0272522da6672171e8286a7cd3e9b4a63a7
parentc6b5d9d78163a4af46fbe6f529821d338a7b55ef (diff)
add missing braces.
From FreeBSD
-rw-r--r--sys/dev/ic/dc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c
index 483d4773c8e..23e1fb7d557 100644
--- a/sys/dev/ic/dc.c
+++ b/sys/dev/ic/dc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dc.c,v 1.76 2004/12/02 02:28:35 brad Exp $ */
+/* $OpenBSD: dc.c,v 1.77 2004/12/17 02:26:27 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -2410,10 +2410,11 @@ dc_tick(xsc)
} else {
r = CSR_READ_4(sc, DC_ISR);
if ((r & DC_ISR_RX_STATE) == DC_RXSTATE_WAIT &&
- sc->dc_cdata.dc_tx_cnt == 0 && !DC_IS_ASIX(sc))
+ sc->dc_cdata.dc_tx_cnt == 0) {
mii_tick(mii);
- if (!(mii->mii_media_status & IFM_ACTIVE))
- sc->dc_link = 0;
+ if (!(mii->mii_media_status & IFM_ACTIVE))
+ sc->dc_link = 0;
+ }
}
} else
mii_tick(mii);