From nobody Sat Feb 26 19:21:30 2022 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 E03DD19F2B21; Sat, 26 Feb 2022 19:21:30 +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 4K5c2L61kCz4cJx; Sat, 26 Feb 2022 19:21:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645903290; 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=sTjNM2cUjZGcvC69myAJDr30mha5sCpth0KV7H09N2Y=; b=u4tfMDOPz5aJyrtxSOLUJmUztFmjT0rU0CQVM8IW6DU5jf07RPw1VrMdOfQvH8uKoc27nx j7Z/4OjTylGXgv9WwI5NQd0fu0ZLPn2zNQb3fMNC9U9i1QC5Tsb+uHoABj9R9ghlXOk+RK +TegLi6JOTOMruez3WY82DFdhU571U3iJr+zwU39l+m8v96EOJdZ2PJwmPgsbJOvIP+Ga0 7DOmKo3mM4dwlmbMyp1MN/q9BPQLBCCYV3Gv42oLWP0Hg2LUCXPOOM+04rZagvh8ju+ghS JucrzLP3FAUAYbcqmM7hexfVZTpSHc1QtXxsB3qmkB5HvLluqJVoh1h2+9Msjg== 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 B0684196CD; Sat, 26 Feb 2022 19:21:30 +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 21QJLUxB019992; Sat, 26 Feb 2022 19:21:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21QJLUY0019991; Sat, 26 Feb 2022 19:21:30 GMT (envelope-from git) Date: Sat, 26 Feb 2022 19:21:30 GMT Message-Id: <202202261921.21QJLUY0019991@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: 66b86c8a7604 - main - Fix "set but not used" in the mrsas driver. Remove dead code. 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: 66b86c8a7604c4112bc6af12eacd8b7e438b5c0f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645903290; 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=sTjNM2cUjZGcvC69myAJDr30mha5sCpth0KV7H09N2Y=; b=nXbd3iqZWQ3H8ei8zn9oFTaBwWO+KW+4f8Q1EmZ0zdQLs59+MY0XTScDIv5M2Oe8mzMmky XndZORVXpNVdCMRUAG2pn4iyV3llgrAWAl+wwKXorBRmrw3oPv6+2JZYtbSATYyRVEuAv2 VxXu/86z3nBEIyaJkHlxooUduDYAOwzscZHri4DfPHDuXQI5gofRbplZJ+hMfqidQ38Qtj 9jO9Y9oe2o0NNWubNtWO1N6yxgoii+H5kgCOzB9ZBu/qyCBZJpv4OpKfknyQs8DbyJlby+ Nz1balgiplkzmTV3YfMGyHK7hAjHt2jnKz1C8Ka8c8u3eWAym73uTS4qp4o3sg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645903290; a=rsa-sha256; cv=none; b=gOS6RQQ6iaeXr+TPwpeY+gE8TJRSatBp0Z4hvczUdVweXPFRoNpDaPSXOutm+xvVWIkCfA PqGngaGlbLPAj/KEiy6PJ6lNFVFoNfzEcwOVmwo7ET0T4bHXioZR0/TD8AwfuEhjtWpzRb M784LEiQQSyseO73ufSKraCv2pryptfjGgr6yJuVP7jJIoyvsJy8IPOKT6v56rICcUTOgc oKvgxrk0CC8WArviXTxFGj/NgCj2WJkzehZF3aCmRlDpQu/2myKxNMzanRzVcqrGMXnJ+j Q8I8OJRReDYe/WztULxJjGORPkD9VMgeS0Wb2Y5+EGfH0slfQw43vDhGjhGxBw== 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=66b86c8a7604c4112bc6af12eacd8b7e438b5c0f commit 66b86c8a7604c4112bc6af12eacd8b7e438b5c0f Author: Scott Long AuthorDate: 2022-02-26 19:21:11 +0000 Commit: Scott Long CommitDate: 2022-02-26 19:21:11 +0000 Fix "set but not used" in the mrsas driver. Remove dead code. --- sys/dev/mrsas/mrsas_fp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/mrsas/mrsas_fp.c b/sys/dev/mrsas/mrsas_fp.c index cddf1a2bfc55..6086cfb9a1a9 100644 --- a/sys/dev/mrsas/mrsas_fp.c +++ b/sys/dev/mrsas/mrsas_fp.c @@ -1753,7 +1753,7 @@ MR_GetSpanBlock(u_int32_t ld, u_int64_t row, u_int64_t *span_blk, MR_QUAD_ELEMENT *quad; MR_LD_RAID *raid = MR_LdRaidGet(ld, map); u_int32_t span, j; - u_int64_t blk, debugBlk; + u_int64_t blk; for (span = 0; span < raid->spanDepth; span++, pSpanBlock++) { for (j = 0; j < pSpanBlock->block_span_info.noElements; j++) { @@ -1766,7 +1766,6 @@ MR_GetSpanBlock(u_int32_t ld, u_int64_t row, u_int64_t *span_blk, (mega_mod64(row - quad->logStart, quad->diff)) == 0) { if (span_blk != NULL) { blk = mega_div64_32((row - quad->logStart), quad->diff); - debugBlk = blk; blk = (blk + quad->offsetInSpan) << raid->stripeShift; *span_blk = blk; }