git: cf48fcc8c9be - stable/14 - cxgb(4): remove unused variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Sep 2026 14:47:22 UTC
The branch stable/14 has been updated by siva:
URL: https://cgit.FreeBSD.org/src/commit/?id=cf48fcc8c9be44e6407e24b26f05881d0606aea5
commit cf48fcc8c9be44e6407e24b26f05881d0606aea5
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:32:22 +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 acd49d132094..ae32e69a31ec 100644
--- a/sys/dev/cxgb/cxgb_sge.c
+++ b/sys/dev/cxgb/cxgb_sge.c
@@ -1409,7 +1409,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);
@@ -1417,7 +1417,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;