diff options
author | Bill Fischofer <bill.fischofer@linaro.org> | 2015-09-03 10:16:35 -0500 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-09-03 19:29:13 +0300 |
commit | 563f74c6a4e931b9b4f9f6b3b8fd83ecc08eed51 (patch) | |
tree | ce707f94404f77cdcdebd899674af4c5dbd48884 | |
parent | ef7861b1fdb7e0ff689a175eca2cc81e1f8d1cfc (diff) |
linux-generic: schedule: streamline handling of event deq processing
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
Reviewed-and-Tested-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
-rw-r--r-- | platform/linux-generic/odp_schedule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c index a88ba4d..c6619e5 100644 --- a/platform/linux-generic/odp_schedule.c +++ b/platform/linux-generic/odp_schedule.c @@ -482,11 +482,11 @@ static int schedule(odp_queue_t *out_queue, odp_event_t out_ev[], pri_q = sched->pri_queue[i][id]; ev = odp_queue_deq(pri_q); - buf = odp_buffer_from_event(ev); - if (buf == ODP_BUFFER_INVALID) + if (ev == ODP_EVENT_INVALID) continue; + buf = odp_buffer_from_event(ev); sched_cmd = odp_buffer_addr(buf); if (sched_cmd->cmd == SCHED_CMD_POLL_PKTIN) { |