Skip to content

Commit ccbdaaa

Browse files
conorwalsh-inteldavid-marchand
authored andcommitted
test/distributor: remove unused counter
Reported by clang 13. This patch fixes unused but set variables in the distributor test perf. Bugzilla ID: 881 Fixes: c0de0eb ("distributor: switch over to new API") Cc: stable@dpdk.org 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>
1 parent e76eb56 commit ccbdaaa

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

app/test/test_distributor_perf.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ static int
108108
handle_work(void *arg)
109109
{
110110
struct rte_distributor *d = arg;
111-
unsigned int count = 0;
112111
unsigned int num = 0;
113112
int i;
114113
unsigned int id = __atomic_fetch_add(&worker_idx, 1, __ATOMIC_RELAXED);
@@ -120,11 +119,9 @@ handle_work(void *arg)
120119
num = rte_distributor_get_pkt(d, id, buf, buf, num);
121120
while (!quit) {
122121
worker_stats[id].handled_packets += num;
123-
count += num;
124122
num = rte_distributor_get_pkt(d, id, buf, buf, num);
125123
}
126124
worker_stats[id].handled_packets += num;
127-
count += num;
128125
rte_distributor_return_pkt(d, id, buf, num);
129126
return 0;
130127
}

0 commit comments

Comments
 (0)