kernel: k_timer_init: use NULL when initializing user data
Fixes sparse warning: <snip>/zephyr/kernel/timer.c:105:28: warning: Using plain integer as NULL pointer CC kernel/timer.o Change-Id: Ic17a0b976d25079711f10137667148a321c95dbf Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
This commit is contained in:
parent
51f9318a32
commit
4fef76082a
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ void k_timer_init(struct k_timer *timer,
|
|||
_init_timeout(&timer->timeout, _timer_expiration_handler);
|
||||
SYS_TRACING_OBJ_INIT(k_timer, timer);
|
||||
|
||||
timer->user_data = 0;
|
||||
timer->user_data = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue