aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dc
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2001-02-20 04:43:59 +0000
committerWarner Losh <imp@FreeBSD.org>2001-02-20 04:43:59 +0000
commitd2a1864b0a75dc1f92cf6e03c9b5bed38553e0a2 (patch)
treed6dd65fdf56ef9cfc85236253978a0421c5a90c8 /sys/dev/dc
parent0aa477423a18e4ba776fd96575368cc903117382 (diff)
Notes
Diffstat (limited to 'sys/dev/dc')
-rw-r--r--sys/dev/dc/if_dc.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c
index 94c284baa310d..3b33d117699c7 100644
--- a/sys/dev/dc/if_dc.c
+++ b/sys/dev/dc/if_dc.c
@@ -2713,13 +2713,12 @@ static void dc_intr(arg)
u_int32_t status;
sc = arg;
- DC_LOCK(sc);
- ifp = &sc->arpcom.ac_if;
- if ( (CSR_READ_4(sc, DC_ISR) & DC_INTRS) == 0) {
- DC_UNLOCK(sc);
+ if ( (CSR_READ_4(sc, DC_ISR) & DC_INTRS) == 0)
return ;
- }
+
+ DC_LOCK(sc);
+ ifp = &sc->arpcom.ac_if;
/* Suppress unwanted interrupts */
if (!(ifp->if_flags & IFF_UP)) {