diff options
author | mjacob <mjacob@cvs.openbsd.org> | 1999-11-22 22:34:31 +0000 |
---|---|---|
committer | mjacob <mjacob@cvs.openbsd.org> | 1999-11-22 22:34:31 +0000 |
commit | 6c0bf3ddeeb3c8fea3bd75abc8e0a8e2446b3e36 (patch) | |
tree | f1fd366c7ae1f2c3ad46c8030ff5f63a11a9542c /sys/dev/ic | |
parent | 5b2767279ec547fef43cb37fe3a504031abef9ba (diff) |
Fix crock where channel was used before being set. All my kernels
worked, guess it was a random thing. Pity that the compiler didn't,
like it would have for FreeBSD, warn about 'used before being set'.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/isp_openbsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/isp_openbsd.c b/sys/dev/ic/isp_openbsd.c index 71b8f526dbe..abb72a37874 100644 --- a/sys/dev/ic/isp_openbsd.c +++ b/sys/dev/ic/isp_openbsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isp_openbsd.c,v 1.4 1999/11/22 12:50:53 mjacob Exp $ */ +/* $OpenBSD: isp_openbsd.c,v 1.5 1999/11/22 22:34:30 mjacob Exp $ */ /* * Platform (OpenBSD) dependent common attachment code for Qlogic adapters. * @@ -206,9 +206,9 @@ ispcmd_slow(xs) * Have we completed discovery for this target on this adapter? */ sdp = isp->isp_param; - sdp += chan; tgt = XS_TGT(xs); chan = XS_CHANNEL(xs); + sdp += chan; if ((xs->flags & SCSI_POLL) != 0 || (isp->isp_osinfo.discovered[chan] & (1 << tgt)) != 0) { return (ispcmd(xs)); |