Skip to content

Commit

Permalink
net/atlantic: fix build with clang 15
Browse files Browse the repository at this point in the history
[ upstream commit f25fa03ad1a9df09870b55efa8b543ca60ab1b88 ]

This variable is not used.

Fixes: 2b1472d ("net/atlantic: implement Tx path")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
  • Loading branch information
david-marchand authored and cpaelzer committed Nov 24, 2022
1 parent b53ecda commit 5bdb78f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/atlantic/atl_rxtx.c
Expand Up @@ -1132,10 +1132,9 @@ atl_xmit_cleanup(struct atl_tx_queue *txq)
if (txq != NULL) {
sw_ring = txq->sw_ring;
int head = txq->tx_head;
int cnt;
int i;
int cnt = head;

for (i = 0, cnt = head; ; i++) {
while (true) {
txd = &txq->hw_ring[cnt];

if (txd->dd)
Expand Down

0 comments on commit 5bdb78f

Please sign in to comment.