event/dpaa2: remove dead code from self test
authorDavid Marchand <david.marchand@redhat.com>
Wed, 28 Oct 2020 12:20:05 +0000 (13:20 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 31 Oct 2020 21:14:26 +0000 (22:14 +0100)
This code has never been used since introduction.

Fixes: 653242c3375a ("event/dpaa2: add self test")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Nipun Gupta <nipun.gupta@nxp.com>
drivers/event/dpaa2/dpaa2_eventdev_selftest.c

index b1f3891..5447db8 100644 (file)
@@ -47,17 +47,6 @@ struct event_attr {
        uint8_t seq;
 };
 
-static uint32_t seqn_list_index;
-static int seqn_list[NUM_PACKETS];
-
-static void
-seqn_list_init(void)
-{
-       RTE_BUILD_BUG_ON(NUM_PACKETS < MAX_EVENTS);
-       memset(seqn_list, 0, sizeof(seqn_list));
-       seqn_list_index = 0;
-}
-
 struct test_core_param {
        rte_atomic32_t *total_events;
        uint64_t dequeue_tmo_ticks;
@@ -516,7 +505,7 @@ launch_workers_and_wait(int (*main_worker)(void *),
                return 0;
 
        rte_atomic32_set(&atomic_total_events, total_events);
-       seqn_list_init();
+       RTE_BUILD_BUG_ON(NUM_PACKETS < MAX_EVENTS);
 
        param = malloc(sizeof(struct test_core_param) * nb_workers);
        if (!param)