git: bc02034cca45 - main - nfe: plug set-but-not-unused vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Dec 2021 11:54:07 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=bc02034cca45949e5064111213c9fe89a4712d07 commit bc02034cca45949e5064111213c9fe89a4712d07 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2021-12-10 11:53:38 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> 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++) {