diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-05-28 23:45:07 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-05-28 23:45:07 +0000 |
commit | 53811f7d4cdf7d2ae3a235f72f7e5ecb2515a91a (patch) | |
tree | 6edd2fdb502afbe5d7fba307eac85ec101aa1372 /sys/scsi | |
parent | 02224b95798a854e14eaabbdd698ce73e5a7e846 (diff) |
'openings' is u_int16_t, so 'openings <= 0' is wrong. Lint.
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/scsi_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c index 5c408a8c4a6..90ea6f49957 100644 --- a/sys/scsi/scsi_base.c +++ b/sys/scsi/scsi_base.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_base.c,v 1.73 2005/05/28 23:32:25 krw Exp $ */ +/* $OpenBSD: scsi_base.c,v 1.74 2005/05/28 23:45:06 krw Exp $ */ /* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */ /* @@ -106,7 +106,7 @@ scsi_get_xs(sc_link, flags) SC_DEBUG(sc_link, SDEV_DB3, ("scsi_get_xs\n")); s = splbio(); - while (sc_link->openings <= 0) { + while (sc_link->openings == 0) { SC_DEBUG(sc_link, SDEV_DB3, ("sleeping\n")); if ((flags & SCSI_NOSLEEP) != 0) { splx(s); |