summaryrefslogtreecommitdiffstats
path: root/lib/librte_timer/rte_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_timer/rte_timer.c')
-rw-r--r--lib/librte_timer/rte_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c
index 4bbcd067..590488c7 100644
--- a/lib/librte_timer/rte_timer.c
+++ b/lib/librte_timer/rte_timer.c
@@ -403,7 +403,7 @@ rte_timer_reset(struct rte_timer *tim, uint64_t ticks,
if (unlikely((tim_lcore != (unsigned)LCORE_ID_ANY) &&
!(rte_lcore_is_enabled(tim_lcore) ||
- rte_lcore_has_role(tim_lcore, ROLE_SERVICE) == 0)))
+ rte_lcore_has_role(tim_lcore, ROLE_SERVICE))))
return -1;
if (type == PERIODICAL)