The branch main has been updated by siva:

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

commit d5047ddeddab45923ff4870cf9a0e158619e3a30
Author:     Siva Mahadevan <[email protected]>
AuthorDate: 2026-09-10 14:37:06 +0000
Commit:     Siva Mahadevan <[email protected]>
CommitDate: 2026-09-10 14:37:06 +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
---
 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;

Reply via email to