Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Dec 2021 22:20:15 GMT
From:      Scott Long <scottl@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 14c912c60dbd - main - FIx "set but not used" in the isp driver.
Message-ID:  <202112052220.1B5MKFNC017585@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by scottl:

URL: https://cgit.FreeBSD.org/src/commit/?id=14c912c60dbdeea1769eb32a511e8822356cc6ad

commit 14c912c60dbdeea1769eb32a511e8822356cc6ad
Author:     Scott Long <scottl@FreeBSD.org>
AuthorDate: 2021-12-05 22:19:56 +0000
Commit:     Scott Long <scottl@FreeBSD.org>
CommitDate: 2021-12-05 22:19:56 +0000

    FIx "set but not used" in the isp driver.
    
    Sponsored by: Rubicon Communications, LLC ("Netgate")
---
 sys/dev/isp/isp.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c
index 93d2a658afbb..5d1c824deff4 100644
--- a/sys/dev/isp/isp.c
+++ b/sys/dev/isp/isp.c
@@ -3064,7 +3064,10 @@ isp_intr_respq(ispsoftc_t *isp)
 	isphdr_t *hp;
 	uint8_t *resp, *snsp, etype;
 	uint16_t scsi_status;
-	uint32_t iptr, cont = 0, cptr, optr, rlen, slen, sptr, totslen;
+	uint32_t iptr, cont = 0, cptr, optr, rlen, slen, totslen;
+#ifdef	ISP_TARGET_MODE
+	uint32_t sptr;
+#endif
 
 	/*
 	 * We can't be getting this now.
@@ -3077,7 +3080,10 @@ isp_intr_respq(ispsoftc_t *isp)
 	iptr = ISP_READ(isp, BIU2400_RSPINP);
 	optr = isp->isp_resodx;
 	while (optr != iptr) {
-		sptr = cptr = optr;
+		cptr = optr;
+#ifdef	ISP_TARGET_MODE
+		sptr = optr;
+#endif
 		hp = (isphdr_t *) ISP_QUEUE_ENTRY(isp->isp_result, cptr);
 		optr = ISP_NXT_QENTRY(optr, RESULT_QUEUE_LEN(isp));
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112052220.1B5MKFNC017585>