Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia Oops; fix a slight biff in the PIO input rout...



details:   https://anonhg.NetBSD.org/src/rev/889201dfc898
branches:  trunk
changeset: 483885:889201dfc898
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Mon Mar 20 06:01:11 2000 +0000

description:
Oops; fix a slight biff in the PIO input routine.

diffstat:

 sys/dev/pcmcia/esp_pcmcia.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r 444e432055ba -r 889201dfc898 sys/dev/pcmcia/esp_pcmcia.c
--- a/sys/dev/pcmcia/esp_pcmcia.c       Mon Mar 20 05:48:28 2000 +0000
+++ b/sys/dev/pcmcia/esp_pcmcia.c       Mon Mar 20 06:01:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: esp_pcmcia.c,v 1.3 2000/03/20 03:49:23 tsutsui Exp $   */
+/*     $NetBSD: esp_pcmcia.c,v 1.4 2000/03/20 06:01:11 mycroft Exp $   */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -426,11 +426,11 @@
        espintr = (u_int) sc->sc_espintr;
        do {
                if (esc->sc_datain) {
-                       if (espphase == DATA_IN_PHASE) {
-                               *p++ = NCR_READ_REG(sc, NCR_FIFO);
-                               cnt--;
+                       *p++ = NCR_READ_REG(sc, NCR_FIFO);
+                       cnt--;
+                       if (espphase == DATA_IN_PHASE)
                                NCR_WRITE_REG(sc, NCR_CMD, NCRCMD_TRANS);
-                       } else
+                       else
                                esc->sc_active = 0;
                } else {
                        if (espphase == DATA_OUT_PHASE ||



Home | Main Index | Thread Index | Old Index