[lvc-project] [PATCH] chelsio: delete the line with the pIdx initialization
Markov Gleb
markov.gi at npc-ksb.ru
Mon May 25 15:43:13 MSK 2026
From: Gleb Markov <markov.gi at npc-ksb.ru>
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.
Fixes: f1d3d38af757 ("[PATCH] chelsio: add support for other 10G boards")
Signed-off-by: Gleb Markov <markov.gi at npc-ksb.ru>
---
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
More information about the lvc-project
mailing list