test/event: fix build with clang 15

This variable is not used.

Fixes: d1f3385d00 ("test: add event timer adapter auto-test")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Tested-by: Daxue Gao <daxuex.gao@intel.com>
This commit is contained in:
David Marchand 2022-11-18 09:53:13 +01:00
parent 8f8ed0c1f7
commit ff5b90f9d0

View File

@ -911,7 +911,6 @@ _cancel_thread(void *args)
{
RTE_SET_USED(args);
struct rte_event_timer *ev_tim = NULL;
uint64_t cancel_count = 0;
uint16_t ret;
while (!arm_done || rte_ring_count(timer_producer_ring) > 0) {
@ -921,7 +920,6 @@ _cancel_thread(void *args)
ret = rte_event_timer_cancel_burst(timdev, &ev_tim, 1);
TEST_ASSERT_EQUAL(ret, 1, "Failed to cancel timer");
rte_mempool_put(eventdev_test_mempool, (void *)ev_tim);
cancel_count++;
}
return TEST_SUCCESS;