From 53811f7d4cdf7d2ae3a235f72f7e5ecb2515a91a Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 28 May 2005 23:45:07 +0000 Subject: 'openings' is u_int16_t, so 'openings <= 0' is wrong. Lint. --- sys/scsi/scsi_base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/scsi') 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); -- cgit v1.2.3