Skip to content

Commit

Permalink
test/event: fix build with clang 15
Browse files Browse the repository at this point in the history
[ upstream commit ff5b90f9d0675f1fa92b449ed086b6641301be51 ]

This variable is not used.

Fixes: d1f3385 ("test: add event timer adapter auto-test")

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>
  • Loading branch information
david-marchand authored and cpaelzer committed Nov 24, 2022
1 parent 9abff6b commit 15caa4a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/test/test_event_timer_adapter.c
Expand Up @@ -764,7 +764,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) {
Expand All @@ -774,7 +773,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;
Expand Down

0 comments on commit 15caa4a

Please sign in to comment.