git: 292e92b32824 - stable/15 - cxgb(4): remove unused variable

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

URL: https://cgit.FreeBSD.org/src/commit/?id=292e92b32824f43ab5eef791398bfe0585addaa8

commit 292e92b32824f43ab5eef791398bfe0585addaa8
Author:     Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-09-10 14:37:06 +0000
Commit:     Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-09-14 14:02:36 +0000

    cxgb(4): remove unused variable
    
    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:    np
    MFC after:      3 days
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D59545
    
    (cherry picked from commit d5047ddeddab45923ff4870cf9a0e158619e3a30)
---
 sys/dev/cxgb/cxgb_sge.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/cxgb/cxgb_sge.c b/sys/dev/cxgb/cxgb_sge.c
index 85e92b0e06ff..9614b69cfc6a 100644
--- a/sys/dev/cxgb/cxgb_sge.c
+++ b/sys/dev/cxgb/cxgb_sge.c
@@ -1406,7 +1406,7 @@ t3_encap(struct sge_qset *qs, struct mbuf **m)
 
 	if (m0->m_nextpkt != NULL) {
 		struct cpl_tx_pkt_batch *cpl_batch = (struct cpl_tx_pkt_batch *)txd;
-		int i, fidx;
+		int i;
 
 		if (nsegs > 7)
 			panic("trying to coalesce %d packets in to one WR", nsegs);
@@ -1414,7 +1414,7 @@ t3_encap(struct sge_qset *qs, struct mbuf **m)
 		wrp = (struct work_request_hdr *)txd;
 		flits = nsegs*2 + 1;
 
-		for (fidx = 1, i = 0; i < nsegs; i++, fidx += 2) {
+		for (i = 0; i < nsegs; i++) {
 			struct cpl_tx_pkt_batch_entry *cbe;
 			uint64_t flit;
 			uint32_t *hflit = (uint32_t *)&flit;