diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2021-11-26 14:01:01 +0200 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2021-12-09 10:26:00 +0200 |
commit | 2f16a667c8529fc77516b2dc848460ac8a720433 (patch) | |
tree | cdecbb38d8664a316b9b8e7b0903386c3b2dbe6e /test/performance/odp_timer_perf.c | |
parent | fa12ddd6005aa9c1d7bbe6beb7ddf5249eb6546b (diff) |
test: timer: use timer pool param init function
Update test applications to use odp_timer_pool_param_init()
instead of memset() in timer pool parameter initialization.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'test/performance/odp_timer_perf.c')
-rw-r--r-- | test/performance/odp_timer_perf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/performance/odp_timer_perf.c b/test/performance/odp_timer_perf.c index a45081643..f1c4943bf 100644 --- a/test/performance/odp_timer_perf.c +++ b/test/performance/odp_timer_perf.c @@ -345,8 +345,7 @@ static int create_timer_pools(test_global_t *global) return -1; } - memset(&timer_pool_param, 0, sizeof(odp_timer_pool_param_t)); - + odp_timer_pool_param_init(&timer_pool_param); timer_pool_param.res_ns = res_ns; timer_pool_param.min_tmo = min_tmo_ns; timer_pool_param.max_tmo = max_tmo_ns; |