From nobody Tue Dec 21 01:06:11 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 41CEE190462C; Tue, 21 Dec 2021 01:06:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JHyvR6lkGz4TS2; Tue, 21 Dec 2021 01:06:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C781D206BF; Tue, 21 Dec 2021 01:06:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BL16Bmi024958; Tue, 21 Dec 2021 01:06:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BL16Bkn024957; Tue, 21 Dec 2021 01:06:11 GMT (envelope-from git) Date: Tue, 21 Dec 2021 01:06:11 GMT Message-Id: <202112210106.1BL16Bkn024957@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Motin Subject: git: 8a45f0ab2002 - stable/13 - FIx "set but not used" in the isp driver. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mav X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 8a45f0ab2002bb0c53c8ec451f9d9bddb556455c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640048772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=evZQFVrIlpLJL1dttUbydWjFGYoaJLUGtKsebcmDUSk=; b=VdVE5YU3ptpaoVenC0W+/rlUMS8dlS8FBrdP5aps3TkxvUS1S/N55FhKh3aNVhejQm0rx8 +XcrSl8E6y6FphgrDzDU+lyf9YCu2wrZoGXerndbUlGraaCZ6deN2GMTtF/MgghtbAaC1t lN30gVagUnfSUwA6vpgEq5gWa4oG/9whULLP1WRWmIT5INctdqGhQOibnhVqA6dZpmjlR7 HKCt9X+zWV8WIGn+R9WC76e8I1ZbG7ygVI9jnMLWUn97hUVUvDR/c3bSamXZfe9qLZdzFW ynrYDr6MGrCfzP4kWj3FZ73BaexNAcp5bbwWu0EWY8xDZtRn89tMidv3VbKn+g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640048772; a=rsa-sha256; cv=none; b=Cddw/b/If8mBHmAXzcLccKNbB/WRJgTH+eFIA3jzoER5qDwcq13r6AEsvsyj+lkpnHBU5W d2UCsiDVsu6rFYe+I0x4cRuBl7Ddb5eZ7Bc+vIVvO4Ioya+MfNxes5AGIdLKhdNAQhcKmc mgFOv1VkLSJE45w6I1kcxPi7a/tn69PXy30qg/SuU/KanHH9cyUIexWFL4CBl0jGJlixX1 tHQ1XeBFT2otWfm0kBJfXpX4dtqia6m9KN79fkTDaRnjMcVeY01kzEANBQeLor6Crgb76I qMtye5eHfpXXgqEvLwsbbJ/SBQshQqY3F9yvWiYDqRH9Tv27Ef8JmEM71CWaDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=8a45f0ab2002bb0c53c8ec451f9d9bddb556455c commit 8a45f0ab2002bb0c53c8ec451f9d9bddb556455c Author: Scott Long AuthorDate: 2021-12-05 22:19:56 +0000 Commit: Alexander Motin 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));