git: 94b098882f39 - main - vmx: plug set-but-not-used var

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Tue, 14 Dec 2021 14:13:05 UTC
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=94b098882f39341ef306e156bca1b248b385be09

commit 94b098882f39341ef306e156bca1b248b385be09
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-12-14 14:12:35 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-12-14 14:12:35 +0000

    vmx: plug set-but-not-used var
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/dev/vmware/vmxnet3/if_vmx.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/sys/dev/vmware/vmxnet3/if_vmx.c b/sys/dev/vmware/vmxnet3/if_vmx.c
index 85f831e44755..6f1ed1e58ca7 100644
--- a/sys/dev/vmware/vmxnet3/if_vmx.c
+++ b/sys/dev/vmware/vmxnet3/if_vmx.c
@@ -540,12 +540,10 @@ vmxnet3_free_irqs(struct vmxnet3_softc *sc)
 static int
 vmxnet3_attach_post(if_ctx_t ctx)
 {
-	device_t dev;
 	if_softc_ctx_t scctx;
 	struct vmxnet3_softc *sc;
 	int error;
 
-	dev = iflib_get_dev(ctx);
 	scctx = iflib_get_softc_ctx(ctx);
 	sc = iflib_get_softc(ctx);
 
@@ -1047,7 +1045,6 @@ static void
 vmxnet3_init_shared_data(struct vmxnet3_softc *sc)
 {
 	struct vmxnet3_driver_shared *ds;
-	if_shared_ctx_t sctx;
 	if_softc_ctx_t scctx;
 	struct vmxnet3_txqueue *txq;
 	struct vmxnet3_txq_shared *txs;
@@ -1056,7 +1053,6 @@ vmxnet3_init_shared_data(struct vmxnet3_softc *sc)
 	int i;
 
 	ds = sc->vmx_ds;
-	sctx = sc->vmx_sctx;
 	scctx = sc->vmx_scctx;
 
 	/*
@@ -1157,7 +1153,6 @@ vmxnet3_reinit_rss_shared_data(struct vmxnet3_softc *sc)
 	    0x96, 0xa6, 0x9f, 0x8f, 0x9e, 0x8c, 0x90, 0xc9,
 	};
 
-	struct vmxnet3_driver_shared *ds;
 	if_softc_ctx_t scctx;
 	struct vmxnet3_rss_shared *rss;
 #ifdef RSS
@@ -1165,7 +1160,6 @@ vmxnet3_reinit_rss_shared_data(struct vmxnet3_softc *sc)
 #endif
 	int i;
 
-	ds = sc->vmx_ds;
 	scctx = sc->vmx_scctx;
 	rss = sc->vmx_rss;
 
@@ -1730,13 +1724,9 @@ static void
 vmxnet3_isc_rxd_flush(void *vsc, uint16_t rxqid, uint8_t flid, qidx_t pidx)
 {
 	struct vmxnet3_softc *sc;
-	struct vmxnet3_rxqueue *rxq;
-	struct vmxnet3_rxring *rxr;
 	bus_size_t r;
 
 	sc = vsc;
-	rxq = &sc->vmx_rxq[rxqid];
-	rxr = &rxq->vxrxq_cmd_ring[flid];
 
 	if (flid == 0)
 		r = VMXNET3_BAR0_RXH1(rxqid);