Skip to content

Commit

Permalink
timer: fix handling of odp_timer_free() return value
Browse files Browse the repository at this point in the history
odp_timer_free() no longer returns an event. Fix handling of the
return value.

Signed-off-by: Jere Leppänen <[email protected]>
  • Loading branch information
JereLeppanen committed Sep 30, 2024
1 parent b57cdb1 commit 19674e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ofp_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ int ofp_timer_cancel(odp_timer_t tim)
return -1;
}

if (odp_timer_free(tim) != ODP_EVENT_INVALID) {
if (odp_timer_free(tim)) {
OFP_ERR("odp_timer_free failed");
return -1;
}
Expand Down

0 comments on commit 19674e4

Please sign in to comment.