Skip to content

Commit

Permalink
net/liquidio: remove unused counter
Browse files Browse the repository at this point in the history
[ upstream commit 52415c6 ]

Reported by clang 13.

Bugzilla ID: 881
Fixes: 5ee7640 ("net/liquidio: add API to flush IQ")

Reported-by: Liang Longfeng <longfengx.liang@intel.com>
Signed-off-by: Conor Walsh <conor.walsh@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
conorwalsh-intel authored and steevenlee committed Nov 28, 2021
1 parent 415c636 commit 6fdb54e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/liquidio/lio_rxtx.c
Expand Up @@ -1050,7 +1050,6 @@ lio_update_read_index(struct lio_instr_queue *iq)
int
lio_flush_iq(struct lio_device *lio_dev, struct lio_instr_queue *iq)
{
uint32_t tot_inst_processed = 0;
uint32_t inst_processed = 0;
int tx_done = 1;

Expand All @@ -1073,7 +1072,6 @@ lio_flush_iq(struct lio_device *lio_dev, struct lio_instr_queue *iq)
iq->stats.instr_processed += inst_processed;
}

tot_inst_processed += inst_processed;
inst_processed = 0;

} while (1);
Expand Down

0 comments on commit 6fdb54e

Please sign in to comment.