Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi Fix obvious condition snafu



details:   https://anonhg.NetBSD.org/src/rev/c7180cd79876
branches:  trunk
changeset: 765362:c7180cd79876
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue May 24 16:35:26 2011 +0000

description:
Fix obvious condition snafu

diffstat:

 sys/dev/scsipi/atapi_wdc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 332aefc5c9e2 -r c7180cd79876 sys/dev/scsipi/atapi_wdc.c
--- a/sys/dev/scsipi/atapi_wdc.c        Tue May 24 16:11:08 2011 +0000
+++ b/sys/dev/scsipi/atapi_wdc.c        Tue May 24 16:35:26 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atapi_wdc.c,v 1.111 2010/03/28 20:46:18 snj Exp $      */
+/*     $NetBSD: atapi_wdc.c,v 1.112 2011/05/24 16:35:26 joerg Exp $    */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.111 2010/03/28 20:46:18 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.112 2011/05/24 16:35:26 joerg Exp $");
 
 #ifndef ATADEBUG
 #define ATADEBUG
@@ -567,7 +567,7 @@
                wdc->select(chp, xfer->c_drive);
        bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[wd_sdh], 0,
            WDSD_IBM | (xfer->c_drive << 4));
-       switch (wdc_wait_for_unbusy(chp, ATAPI_DELAY, wait_flags)  < 0) {
+       switch (wdc_wait_for_unbusy(chp, ATAPI_DELAY, wait_flags)) {
        case WDCWAIT_OK:
                break;
        case WDCWAIT_TOUT:



Home | Main Index | Thread Index | Old Index