Module Name: src Committed By: joerg Date: Tue May 24 16:35:26 UTC 2011
Modified Files: src/sys/dev/scsipi: atapi_wdc.c Log Message: Fix obvious condition snafu To generate a diff of this commit: cvs rdiff -u -r1.111 -r1.112 src/sys/dev/scsipi/atapi_wdc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/scsipi/atapi_wdc.c diff -u src/sys/dev/scsipi/atapi_wdc.c:1.111 src/sys/dev/scsipi/atapi_wdc.c:1.112 --- src/sys/dev/scsipi/atapi_wdc.c:1.111 Sun Mar 28 20:46:18 2010 +++ src/sys/dev/scsipi/atapi_wdc.c Tue May 24 16:35:26 2011 @@ -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: