From nobody Fri Dec 10 11:54:07 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 C54F118E7874; Fri, 10 Dec 2021 11:54:07 +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 4J9Tp73lXzz3kht; Fri, 10 Dec 2021 11:54:07 +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 609CC19D49; Fri, 10 Dec 2021 11:54:07 +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 1BABs7OL015017; Fri, 10 Dec 2021 11:54:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BABs7cq015014; Fri, 10 Dec 2021 11:54:07 GMT (envelope-from git) Date: Fri, 10 Dec 2021 11:54:07 GMT Message-Id: <202112101154.1BABs7cq015014@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: bc02034cca45 - main - nfe: plug set-but-not-unused vars 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bc02034cca45949e5064111213c9fe89a4712d07 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639137247; 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=RDwX12uMmLmBPc7mpfvQ+YD2dd8s0FnTBbR8gJgF9hM=; b=T57tNHkc0ENCVet8x5RZy5K0SsC8B5e2gSCj1NLFIyvJ0hmWlqQB6x5yLnVuP88LtzqSQL 8f+DxvIJQIQYD173JQdCIj+KE7A69uCFtryemxSl9EOo/bdLBkr0ruUmgpAWoSq1vGDoKA t0jwoj7VBAVIsRKhV5TJNAmS83axvJzEhSUpjC5QByJZ93CiA7qGDlqr1ETMyNfn0n18ak p0OIpphgdnoFUUYGivf3Gwv2zr/q+idOJ2GkFdhHcTXYz1rkKrZeME8A/CoXMQd7LkUJbZ 4DLgxbgLloLz91FLn/Gy0vKz1/G8htIeBzGrbTzDiAZlBpJSUU4OSUq1z+ZvrA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639137247; a=rsa-sha256; cv=none; b=xdUZnoOJevE189Y+X872/Wnxc2088fv2+JeyfS8Ud+CzqL4UP1P7amKbmZKbSjZ6nZAGc9 yqg8+gIQgSSQpD+62MT48CtLDsXYAYLsk5esESoAs22zBVgnzFWwNRKFwGdZ27ndn0NxfZ h6YW7rGtJ6iaq9LNZn3KiUlIYmHQ77p00Cc0ArWxpG+QeiEYluh4/oM7J6AaxzCD9foXfo TldySkzMTofrXO/iFg7ev/zKnbFTcUOZW99sJQhZJsCUST2TYkFTeg13uIoHKA7rLn+vfy nM6qXgUDwDgre56oRrRQGQRAwoMbwpRL3YKo7hheeATb6hBgIL9H8fj7Z6J72g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=bc02034cca45949e5064111213c9fe89a4712d07 commit bc02034cca45949e5064111213c9fe89a4712d07 Author: Mateusz Guzik AuthorDate: 2021-12-10 11:53:38 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-10 11:53:38 +0000 nfe: plug set-but-not-unused vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/nfe/if_nfe.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/dev/nfe/if_nfe.c b/sys/dev/nfe/if_nfe.c index bec0615017a4..2e80b82de5dd 100644 --- a/sys/dev/nfe/if_nfe.c +++ b/sys/dev/nfe/if_nfe.c @@ -1408,17 +1408,15 @@ nfe_free_jrx_ring(struct nfe_softc *sc, struct nfe_jrx_ring *ring) { struct nfe_rx_data *data; void *desc; - int i, descsize; + int i; if ((sc->nfe_flags & NFE_JUMBO_SUP) == 0) return; if (sc->nfe_flags & NFE_40BIT_ADDR) { desc = ring->jdesc64; - descsize = sizeof (struct nfe_desc64); } else { desc = ring->jdesc32; - descsize = sizeof (struct nfe_desc32); } for (i = 0; i < NFE_JUMBO_RX_RING_COUNT; i++) { @@ -1567,14 +1565,12 @@ nfe_free_tx_ring(struct nfe_softc *sc, struct nfe_tx_ring *ring) { struct nfe_tx_data *data; void *desc; - int i, descsize; + int i; if (sc->nfe_flags & NFE_40BIT_ADDR) { desc = ring->desc64; - descsize = sizeof (struct nfe_desc64); } else { desc = ring->desc32; - descsize = sizeof (struct nfe_desc32); } for (i = 0; i < NFE_TX_RING_COUNT; i++) {