The branch main has been updated by scottl:

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

commit 14c912c60dbdeea1769eb32a511e8822356cc6ad
Author:     Scott Long <sco...@freebsd.org>
AuthorDate: 2021-12-05 22:19:56 +0000
Commit:     Scott Long <sco...@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));
 

Reply via email to