From 52415c6b2553d4cd44f79b4cb693016225a67b43 Mon Sep 17 00:00:00 2001 From: Conor Walsh Date: Mon, 15 Nov 2021 17:58:54 +0000 Subject: [PATCH] net/liquidio: remove unused counter Reported by clang 13. Bugzilla ID: 881 Fixes: 5ee7640f95a0 ("net/liquidio: add API to flush IQ") Cc: stable@dpdk.org Reported-by: Liang Longfeng Signed-off-by: Conor Walsh Reviewed-by: David Marchand --- drivers/net/liquidio/lio_rxtx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/liquidio/lio_rxtx.c b/drivers/net/liquidio/lio_rxtx.c index ef127f26c4..e09798ddd7 100644 --- a/drivers/net/liquidio/lio_rxtx.c +++ b/drivers/net/liquidio/lio_rxtx.c @@ -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; @@ -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);