[PATCH net-next] chelsio: delete the line with the pidx initialization
From: Markov Gleb
Date: Mon Jun 29 2026 - 09:21:15 EST
From: Gleb Markov <markov.gi@xxxxxxxxxx>
The value of pidx is overwritten immediately after exiting the "if" block.
Remove pidx ptr initialization string from conditional block.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by: Gleb Markov <markov.gi@xxxxxxxxxx>
---
drivers/net/ethernet/chelsio/cxgb/sge.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/ethernet/chelsio/cxgb/sge.c b/drivers/net/ethernet/chelsio/cxgb/sge.c
index 861edff5ed89..4e93d82d5892 100644
--- a/drivers/net/ethernet/chelsio/cxgb/sge.c
+++ b/drivers/net/ethernet/chelsio/cxgb/sge.c
@@ -1743,7 +1743,6 @@ static int t1_sge_tx(struct sk_buff *skb, struct adapter *adapter,
spin_unlock(&q->lock);
return NETDEV_TX_OK;
}
- pidx = q->pidx;
count = 1 + skb_shinfo(skb)->nr_frags;
count += compute_large_page_tx_descs(skb);
}
--
2.43.0