Skip to content

Commit

Permalink
event/dpaa: remove dead code
Browse files Browse the repository at this point in the history
[ upstream commit fea6787 ]

Fix logical dead code.

Coverity issue: 323495
Fixes: 77b5311 ("event/dpaa: support select based event")

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
  • Loading branch information
wyjwang authored and kevintraynor committed Aug 27, 2020
1 parent cd89b1b commit 2915e71
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/event/dpaa/dpaa_eventdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,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;
Expand Down Expand Up @@ -219,8 +219,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();
Expand Down

0 comments on commit 2915e71

Please sign in to comment.