git: 8aa43e6a6376 - stable/14 - iflib: remove unused variables

From: Siva Mahadevan <siva_at_FreeBSD.org>
Date: Mon, 14 Sep 2026 14:47:23 UTC
The branch stable/14 has been updated by siva:

URL: https://cgit.FreeBSD.org/src/commit/?id=8aa43e6a637694ab1bcced006d13fe70fc0c9fd9

commit 8aa43e6a637694ab1bcced006d13fe70fc0c9fd9
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:32:22 +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 912cbc62090a..e90709e84e6f 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -6067,7 +6067,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;
@@ -6107,7 +6107,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,
@@ -6162,7 +6162,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);