event/dpaa: remove dead code
authorYunjian Wang <wangyunjian@huawei.com>
Fri, 17 Jul 2020 11:31:52 +0000 (19:31 +0800)
committerJerin Jacob <jerinj@marvell.com>
Tue, 21 Jul 2020 17:44:47 +0000 (19:44 +0200)
Fix logical dead code.

Coverity issue: 323495
Fixes: 77b5311d0ece ("event/dpaa: support select based event")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/event/dpaa/dpaa_eventdev.c

index a3c138b..b5ae87a 100644 (file)
@@ -174,7 +174,7 @@ dpaa_event_dequeue_burst(void *port, struct rte_event ev[],
        int ret;
        u16 ch_id;
        void *buffers[8];
-       u32 num_frames, i, irq = 0;
+       u32 num_frames, i;
        uint64_t cur_ticks = 0, wait_time_ticks = 0;
        struct dpaa_port *portal = (struct dpaa_port *)port;
        struct rte_mbuf *mbuf;
@@ -223,8 +223,6 @@ dpaa_event_dequeue_burst(void *port, struct rte_event ev[],
        do {
                /* Lets dequeue the frames */
                num_frames = qman_portal_dequeue(ev, nb_events, buffers);
-               if (irq)
-                       irq = 0;
                if (num_frames)
                        break;
                cur_ticks = rte_get_timer_cycles();