From nobody Wed Apr 06 03:43:03 2022 X-Original-To: dev-commits-src-main@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 798A61A919BC; Wed, 6 Apr 2022 03:43:04 +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 4KY9MW5gxBz4sPK; Wed, 6 Apr 2022 03:43:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649216584; 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=UW0GQ79mn4xw4E4GiDZa6ZYV05ba/Z8YrsbDKbhUgK8=; b=PXumJTfIIvhne8bmy+4EW3uOb91vH49gh6IKYDbGonZfcHfHrw+fTTWcecXlpEsgoqLNwF Y3kA5P7cE4L6a5oSvmdCAh7WIDYZTDDO5nERUohbf+BVcSKndyy11qCHhbirbsIcS65INM rOeO1Ho1HQ+lXeVfj0/5LFCjKqYaNxlH4VTIaIEfp0o4ay3dcnp6YxFQcWZt92EzwhoKfD lHkG2OOxkmh+Rg4veNg0qG51Mxcaw/iS7xaF6GC7R6EPxHnvGMjLvojZhKTJDOc1Nb7C+Q y9vTOnGnMuLCGtCHt8U1CxQZ0HvY9ED8yLf97J8QFc9YvWVGZVWQ7o6pro4ZHQ== 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 72D8E13C21; Wed, 6 Apr 2022 03:43:03 +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 2363h350089316; Wed, 6 Apr 2022 03:43:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2363h307089315; Wed, 6 Apr 2022 03:43:03 GMT (envelope-from git) Date: Wed, 6 Apr 2022 03:43:03 GMT Message-Id: <202204060343.2363h307089315@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 37466424b212 - main - mxge: Remove write only variables, mark ifp __unused List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 37466424b212197be80b311f39163a9a0d392f24 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649216584; 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=UW0GQ79mn4xw4E4GiDZa6ZYV05ba/Z8YrsbDKbhUgK8=; b=WC0T0BfoRZ1aerH5MFKWeg3qtHMvAX5jaFPQ6eKGvIIBDDyiVHoyutpSPO2Qc2YQdaVbBS Mb/IiO6o3IvgA+OK+1uZSAFGBIAbnhm98QJp63Rn8bCd8gnXX3oeURMwiTU/nLeEAMUaA3 pxbX8QErhw5W8F/+gZO6GJCCF1gv/Yu1Fpbq9YjmZvd6p9wySbov7DziGa+DxKSvNBCmSQ BReghgba/wpudXb/67RfJHIbS2UgNVbqVSAzpBh0Ag1tvOXppGZQhE1eqoSWfQNDLUYaEG FBI9Ep0o4aRCn8k0sTKjAvxPyWReuHXFnPmFM+Yjx8zuRYD8HNrGuuVu+cqCsQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649216584; a=rsa-sha256; cv=none; b=nTd/lNjvN/qHwYVYG6pKAjWnsVoWQtxaiyJK82u19I+hU61A1LtFmRx0RLpR+7iieW+iIj bQsNTbaEGjtCI+5YTnxTWzYv5CqzGgaqFYJWpuTkMrDfRL22zUWZ16V1mNoIM1joKcOxOK cOFwoklzkhv1SOIFvy40dOMsISZgGFa2Pk+cQDB+O/MR+h5sczIko/3/ahaY8ZOtOUNRIC WFiKAnvoufF7KaO3xKeIw2F5qcfRqM9wok5CVXTCj3l7VbKuM3V9/38mudFnBzV/Y/ursD 6RXCf8hp0IUqSW0nzF49lLv2rjN2HIuwVvYFi56xOxIvlhZACOzTBU3VEohUlA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=37466424b212197be80b311f39163a9a0d392f24 commit 37466424b212197be80b311f39163a9a0d392f24 Author: Warner Losh AuthorDate: 2022-04-06 02:02:39 +0000 Commit: Warner Losh CommitDate: 2022-04-06 03:42:06 +0000 mxge: Remove write only variables, mark ifp __unused Sponsored by: Netflix --- sys/dev/mxge/if_mxge.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c index 8f849bbf87e3..aea6459e41b6 100644 --- a/sys/dev/mxge/if_mxge.c +++ b/sys/dev/mxge/if_mxge.c @@ -2036,14 +2036,12 @@ mxge_encap(struct mxge_slice_state *ss, struct mbuf *m) mcp_kreq_ether_send_t *req; bus_dma_segment_t *seg; struct mbuf *m_tmp; - struct ifnet *ifp; mxge_tx_ring_t *tx; int cnt, cum_len, err, i, idx, odd_flag; uint16_t pseudo_hdr_offset; uint8_t flags, cksum_offset; sc = ss->sc; - ifp = sc->ifp; tx = &ss->tx; #ifdef MXGE_NEW_VLAN_API @@ -2557,11 +2555,9 @@ static void mxge_vlan_tag_remove(struct mbuf *m, uint32_t *csum) { struct ether_vlan_header *evl; - struct ether_header *eh; uint32_t partial; evl = mtod(m, struct ether_vlan_header *); - eh = mtod(m, struct ether_header *); /* * fix checksum by subtracting ETHER_VLAN_ENCAP_LEN bytes @@ -2778,7 +2774,7 @@ mxge_clean_rx_done(struct mxge_slice_state *ss) static inline void mxge_tx_done(struct mxge_slice_state *ss, uint32_t mcp_idx) { - struct ifnet *ifp; + struct ifnet *ifp __unused; mxge_tx_ring_t *tx; struct mbuf *m; bus_dmamap_t map;