git: 37466424b212 - main - mxge: Remove write only variables, mark ifp __unused
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Apr 2022 03:43:03 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=37466424b212197be80b311f39163a9a0d392f24 commit 37466424b212197be80b311f39163a9a0d392f24 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-04-06 02:02:39 +0000 Commit: Warner Losh <imp@FreeBSD.org> 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;