diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2019-09-19 13:08:09 +0300 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2019-10-02 16:20:59 +0300 |
commit | 9537c3802e291e725f0e19005f50dfb254c67dde (patch) | |
tree | 1fda430177c0fdc5c378a728ed55f503e870ff37 /platform/linux-generic/include/odp_timer_internal.h | |
parent | 68f3af205916dd2e8d0dd82f6ab8cb7f548a353a (diff) |
linux-gen: timer: remove unused return value
Removed return value of timer expire function as it was not
used. Also renamed functions so that it's easier to see which
belong to posix and inline timer implementations.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'platform/linux-generic/include/odp_timer_internal.h')
-rw-r--r-- | platform/linux-generic/include/odp_timer_internal.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/platform/linux-generic/include/odp_timer_internal.h b/platform/linux-generic/include/odp_timer_internal.h index 59ea19323..17ebf2684 100644 --- a/platform/linux-generic/include/odp_timer_internal.h +++ b/platform/linux-generic/include/odp_timer_internal.h @@ -37,12 +37,13 @@ typedef struct { /* A larger decrement value should be used after receiving events compared to * an 'empty' call. */ -unsigned int _timer_run(int dec); +void _timer_run_inline(int dec); /* Static inline wrapper to minimize modification of schedulers. */ -static inline unsigned int timer_run(int dec) +static inline void timer_run(int dec) { - return odp_global_rw->inline_timers ? _timer_run(dec) : 0; + if (odp_global_rw->inline_timers) + _timer_run_inline(dec); } #endif |