diff options
author | 2001-12-13 00:15:40 +0000 | |
---|---|---|
committer | 2001-12-13 00:15:40 +0000 | |
commit | 27c3ac77601bce99a05e458a210be01660ee63ce (patch) | |
tree | 5455880d30348617dc5afdc3cbacb5a78de847f4 | |
parent | sync (diff) | |
download | wireguard-openbsd-27c3ac77601bce99a05e458a210be01660ee63ce.tar.xz wireguard-openbsd-27c3ac77601bce99a05e458a210be01660ee63ce.zip |
Initialize variable before use. ok fgs@
-rw-r--r-- | sys/dev/ic/isp_openbsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/isp_openbsd.c b/sys/dev/ic/isp_openbsd.c index 2836acb724a..4ea4399d73e 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.20 2001/09/01 07:16:40 mjacob Exp $ */ +/* $OpenBSD: isp_openbsd.c,v 1.21 2001/12/13 00:15:40 nordin Exp $ */ /* * Platform (OpenBSD) dependent common attachment code for Qlogic adapters. * @@ -288,10 +288,10 @@ ispcmd(XS_T *xs) /* * Make sure that there's *some* kind of sane setting. */ - timeout_set(&xs->stimeout, isp_wdog, isp); - isp = XS_ISP(xs); + timeout_set(&xs->stimeout, isp_wdog, isp); + if (XS_LUN(xs) >= isp->isp_maxluns) { xs->error = XS_SELTIMEOUT;; return (COMPLETE); |