From nobody Sun Dec 05 22:20:15 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 88AE818D03B2; Sun, 5 Dec 2021 22:20:16 +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 4J6gww1Bcnz3ms0; Sun, 5 Dec 2021 22:20:16 +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 05302202B2; Sun, 5 Dec 2021 22:20:16 +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 1B5MKF6X017592; Sun, 5 Dec 2021 22:20:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B5MKFNC017585; Sun, 5 Dec 2021 22:20:15 GMT (envelope-from git) Date: Sun, 5 Dec 2021 22:20:15 GMT Message-Id: <202112052220.1B5MKFNC017585@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Scott Long Subject: git: 14c912c60dbd - main - 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: scottl X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 14c912c60dbdeea1769eb32a511e8822356cc6ad Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638742816; 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=2P7p6Gg0H8fszUk7Yli5AXVXfVaRGqEneAEvLoifvb4=; b=i6uJ1qiQegPglK/5Kv/V2LOQqgNiOWeGI8EPlezQXLq4ykeppzAnvcBy5Eq4KW8dUMYLeF FC2GtxR5BH19QLpZtxjDbjpltx7IkVXRnASdcoqqEULN/Ns5EB6CPkxzcAejPlUnGP0GxT YnDllKu4LyGQXiXOCgOd6M+7z4H8qCakheVNRTfKU040Bck4sqAg4cmk8JpzNFfdjBsPKm UdMzU9VrhySEhZNl5ZvQkpH+2qb9bhQ/0Z1xif0BH9EIsSbM9FtmIXjOlsZR2jSvStz7Mq 3WRtLWxMljaibhR4tAunnGqywBdHDpB+QkRq1deABbSyRQr4GoeesJOvHVeOxw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638742816; a=rsa-sha256; cv=none; b=AMQbd7j63FucPtzxugB7/Lrira/72O26OgVe8+bYlmtrp2SpJO7YtEQeG4Vyys/heay6Cv vazSM4Jj0ZEcJbjUTwEZEFFN0VnpxO0/SA4h9H4+Rum5CasQ880N1SWKniuHCr2Ftl5j00 l67w2hTn1a6pkHthpa9x6o286OMVXNLBcqFEbvFV7e44vfWF0AeYwLeKoi6XEKH4113U1z 35Zqr9Wx4kBIGgCkMfbNrBUmEJGYysAkVEZGwZve8T9S0owPmM25dPUrI0COz4PO6S48SJ tmJZnhIk6g5OahXp2f1geKuYpgqoXugxjhp009ubDmOXNFynl9IU0U+C4X+0qA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by scottl: URL: https://cgit.FreeBSD.org/src/commit/?id=14c912c60dbdeea1769eb32a511e8822356cc6ad commit 14c912c60dbdeea1769eb32a511e8822356cc6ad Author: Scott Long AuthorDate: 2021-12-05 22:19:56 +0000 Commit: Scott Long 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));