git: bdc24098d977 - stable/15 - iflib: remove unused variables
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Sep 2026 14:21:49 UTC
The branch stable/15 has been updated by siva:
URL: https://cgit.FreeBSD.org/src/commit/?id=bdc24098d97786ff6ae22dee20ae49a8bce7a01e
commit bdc24098d97786ff6ae22dee20ae49a8bce7a01e
Author: Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-09-10 14:38:19 +0000
Commit: Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-09-14 14:02:36 +0000
iflib: remove unused variables
This fixes the build with gcc 16 after the changes
to -Wunused*[0].
[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused
Reviewed by: gallatin
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59544
(cherry picked from commit d1ef616302f185ca9c217a9bfa70509b19136016)
---
sys/net/iflib.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys/net/iflib.c b/sys/net/iflib.c
index 258650e127d2..d9aaf8f8b876 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -5927,7 +5927,7 @@ iflib_queues_alloc(if_ctx_t ctx)
iflib_txq_t txq;
iflib_rxq_t rxq;
iflib_fl_t fl = NULL;
- int i, j, cpu, err, txconf, rxconf;
+ int i, j, cpu, err;
iflib_dma_info_t ifdip;
uint32_t *rxqsizes = scctx->isc_rxqsizes;
uint32_t *txqsizes = scctx->isc_txqsizes;
@@ -5967,7 +5967,7 @@ iflib_queues_alloc(if_ctx_t ctx)
/*
* XXX handle allocation failure
*/
- for (txconf = i = 0, cpu = CPU_FIRST(); i < ntxqsets; i++, txconf++, txq++, cpu = CPU_NEXT(cpu)) {
+ for (i = 0, cpu = CPU_FIRST(); i < ntxqsets; i++, txq++, cpu = CPU_NEXT(cpu)) {
/* Set up some basics */
if ((ifdip = malloc(sizeof(struct iflib_dma_info) * ntxqs,
@@ -6022,7 +6022,7 @@ iflib_queues_alloc(if_ctx_t ctx)
}
}
- for (rxconf = i = 0; i < nrxqsets; i++, rxconf++, rxq++) {
+ for (i = 0; i < nrxqsets; i++, rxq++) {
/* Set up some basics */
callout_init(&rxq->ifr_watchdog, 1);