From: Yunjian Wang Date: Fri, 17 Jul 2020 11:31:52 +0000 (+0800) Subject: event/dpaa: remove dead code X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fea678742606d794240bca2c15811c357bf0c298;p=dpdk.git event/dpaa: remove dead code Fix logical dead code. Coverity issue: 323495 Fixes: 77b5311d0ece ("event/dpaa: support select based event") Cc: stable@dpdk.org Signed-off-by: Yunjian Wang Acked-by: Hemant Agrawal --- diff --git a/drivers/event/dpaa/dpaa_eventdev.c b/drivers/event/dpaa/dpaa_eventdev.c index a3c138b7a0..b5ae87a4ea 100644 --- a/drivers/event/dpaa/dpaa_eventdev.c +++ b/drivers/event/dpaa/dpaa_eventdev.c @@ -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();