diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2023-04-26 14:46:27 +0300 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2023-06-08 14:26:28 +0300 |
commit | b7128b352838f18a7913573df460438d5a31f8a0 (patch) | |
tree | c4dc2b4862a1ecebd545e3c889c10e05b2d65adb /platform | |
parent | e8e9cc84bcf925a1e6459a2b21b063cd1bb51ccc (diff) |
linux-gen: timer: use new timer cancel return values
Updated timer cancel implementation to use the new return values.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/linux-generic/odp_timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/linux-generic/odp_timer.c b/platform/linux-generic/odp_timer.c index 7ec1dbf80..24490763c 100644 --- a/platform/linux-generic/odp_timer.c +++ b/platform/linux-generic/odp_timer.c @@ -1731,11 +1731,11 @@ int odp_timer_cancel(odp_timer_t hdl, odp_event_t *tmo_ev) if (old_event != ODP_EVENT_INVALID) { /* Active timer cancelled, timeout returned */ *tmo_ev = old_event; - return 0; + return ODP_TIMER_SUCCESS; } /* Timer already expired, no timeout returned */ - return -1; + return ODP_TIMER_TOO_NEAR; } int odp_timer_periodic_cancel(odp_timer_t hdl) |