diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2010-04-11 09:58:36 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2010-04-11 09:58:36 +0000 |
| commit | dc04f4f064e685a2dbf97b3aea40735b563a1d95 (patch) | |
| tree | c5c412fe299a897a90de9a5fb6cb3f7850780fd7 /sys/dev | |
| parent | 56bdff1846155412ccfcd6fedd59b1542aa64f4f (diff) | |
Fix botched logic in ipkdb part in rev 1.77 (KNF misc).
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/dp8390.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/dp8390.c b/sys/dev/ic/dp8390.c index b5cc120f82d..b00fc84daa9 100644 --- a/sys/dev/ic/dp8390.c +++ b/sys/dev/ic/dp8390.c @@ -1,4 +1,4 @@ -/* $NetBSD: dp8390.c,v 1.78 2010/04/05 07:19:34 joerg Exp $ */ +/* $NetBSD: dp8390.c,v 1.79 2010/04/11 09:58:36 tsutsui Exp $ */ /* * Device driver for National Semiconductor DS8390/WD83C690 based ethernet @@ -14,7 +14,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dp8390.c,v 1.78 2010/04/05 07:19:34 joerg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dp8390.c,v 1.79 2010/04/11 09:58:36 tsutsui Exp $"); #include "opt_ipkdb.h" #include "opt_inet.h" @@ -1392,7 +1392,7 @@ dp8390_ipkdb_init(struct ipkdb_if *kip) /* If output active, wait for packets to drain */ while (sc->txb_inuse) { while ((cmd = (NIC_GET(regt, regh, ED_P0_ISR) & - (ED_ISR_PTX | ED_ISR_TXE))) != 0) + (ED_ISR_PTX | ED_ISR_TXE))) == 0) DELAY(1); NIC_PUT(regt, regh, ED_P0_ISR, cmd); if (--sc->txb_inuse) @@ -1522,7 +1522,7 @@ dp8390_ipkdb_send(struct ipkdb_if *kip, uint8_t *buf, int l) dp8390_xmit(sc); while ((NIC_GET(regt, regh, ED_P0_ISR) & - (ED_ISR_PTX | ED_ISR_TXE)) != 0) + (ED_ISR_PTX | ED_ISR_TXE)) == 0) DELAY(1); sc->txb_inuse--; |
