Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Fix botched logic in ipkdb part in rev 1.77 (KNF ...



details:   https://anonhg.NetBSD.org/src/rev/7e808d9c25c0
branches:  trunk
changeset: 753826:7e808d9c25c0
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Apr 11 09:58:36 2010 +0000

description:
Fix botched logic in ipkdb part in rev 1.77 (KNF misc).

diffstat:

 sys/dev/ic/dp8390.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 29f56203391b -r 7e808d9c25c0 sys/dev/ic/dp8390.c
--- a/sys/dev/ic/dp8390.c       Sun Apr 11 09:52:09 2010 +0000
+++ b/sys/dev/ic/dp8390.c       Sun Apr 11 09:58:36 2010 +0000
@@ -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 @@
        /* 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_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--;



Home | Main Index | Thread Index | Old Index