git: 8a45f0ab2002 - stable/13 - FIx "set but not used" in the isp driver.

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Tue, 21 Dec 2021 01:06:11 UTC
The branch stable/13 has been updated by mav:

URL: https://cgit.FreeBSD.org/src/commit/?id=8a45f0ab2002bb0c53c8ec451f9d9bddb556455c

commit 8a45f0ab2002bb0c53c8ec451f9d9bddb556455c
Author:     Scott Long <scottl@FreeBSD.org>
AuthorDate: 2021-12-05 22:19:56 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2021-12-21 01:05:59 +0000

    FIx "set but not used" in the isp driver.
    
    Sponsored by: Rubicon Communications, LLC ("Netgate")
    
    (cherry picked from commit 14c912c60dbdeea1769eb32a511e8822356cc6ad)
---
 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));