Source-Changes-HG archive

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

[src/jdolecek-ncq]: src/sys/dev/ic fix inverted logic for calling atastart()



details:   https://anonhg.NetBSD.org/src/rev/4c766b7246b7
branches:  jdolecek-ncq
changeset: 823028:4c766b7246b7
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Fri Sep 22 20:19:08 2017 +0000

description:
fix inverted logic for calling atastart()

diffstat:

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

diffs (36 lines):

diff -r ef2edf882d5d -r 4c766b7246b7 sys/dev/ic/mvsata.c
--- a/sys/dev/ic/mvsata.c       Thu Sep 21 18:47:21 2017 +0000
+++ b/sys/dev/ic/mvsata.c       Fri Sep 22 20:19:08 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mvsata.c,v 1.35.6.27 2017/09/20 18:35:37 jdolecek Exp $        */
+/*     $NetBSD: mvsata.c,v 1.35.6.28 2017/09/22 20:19:08 jdolecek Exp $        */
 /*
  * Copyright (c) 2008 KIYOHARA Takashi
  * All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.35.6.27 2017/09/20 18:35:37 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.35.6.28 2017/09/22 20:19:08 jdolecek Exp $");
 
 #include "opt_mvsata.h"
 
@@ -1529,7 +1529,7 @@
        struct mvsata_port *mvport = (struct mvsata_port *)chp;
        struct ata_bio *ata_bio = &xfer->c_bio;
        int drive = xfer->c_drive;
-       bool iserror = (ata_bio->error == NOERROR);
+       bool iserror = (ata_bio->error != NOERROR);
 
        DPRINTF(DEBUG_FUNCS|DEBUG_XFERS,
            ("%s:%d: mvsata_bio_done: drive=%d, flags=0x%x\n",
@@ -2689,7 +2689,7 @@
 {
        struct mvsata_port *mvport = (struct mvsata_port *)chp;
        struct scsipi_xfer *sc_xfer = xfer->c_scsipi;
-       bool iserror = (sc_xfer->error == XS_NOERROR);
+       bool iserror = (sc_xfer->error != XS_NOERROR);
 
        DPRINTF(DEBUG_FUNCS|DEBUG_XFERS,
            ("%s:%d:%d: mvsata_atapi_done: flags 0x%x\n",



Home | Main Index | Thread Index | Old Index