diff options
author | 2005-05-28 23:45:06 +0000 | |
---|---|---|
committer | 2005-05-28 23:45:06 +0000 | |
commit | b7662da5070dc2afa319643bed34ceab4964eef4 (patch) | |
tree | ab9019b1897bada9319e1868afd80c59b508efaa | |
parent | Forgot to specify parameter type. Lint. (diff) | |
download | wireguard-openbsd-b7662da5070dc2afa319643bed34ceab4964eef4.tar.xz wireguard-openbsd-b7662da5070dc2afa319643bed34ceab4964eef4.zip |
'openings' is u_int16_t, so 'openings <= 0' is wrong. Lint.
-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); |