diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-04-20 00:23:29 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-04-20 00:23:29 +0000 |
commit | 23f6d05772bfe767ea50087b6c74aa962907ec0b (patch) | |
tree | 44d3d1e14930375b60da025dbd729657a807013a /sys/dev | |
parent | 11a1205d37c75de7e78b7af8a8da94e15ea1f004 (diff) |
Don't bother to call rl_rxeof() twice if both the RX Ok and Err bits are set.
Based on the same change to re(4) quite some time ago.
ok dlg@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/rtl81x9.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c index 47f2e3e033d..9011926a09c 100644 --- a/sys/dev/ic/rtl81x9.c +++ b/sys/dev/ic/rtl81x9.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9.c,v 1.57 2008/01/22 09:19:11 brad Exp $ */ +/* $OpenBSD: rtl81x9.c,v 1.58 2008/04/20 00:23:28 brad Exp $ */ /* * Copyright (c) 1997, 1998 @@ -819,9 +819,7 @@ int rl_intr(arg) CSR_WRITE_2(sc, RL_ISR, status); if ((status & RL_INTRS) == 0) break; - if (status & RL_ISR_RX_OK) - rl_rxeof(sc); - if (status & RL_ISR_RX_ERR) + if ((status & RL_ISR_RX_OK) || (status & RL_ISR_RX_ERR)) rl_rxeof(sc); if ((status & RL_ISR_TX_OK) || (status & RL_ISR_TX_ERR)) rl_txeof(sc); |