lib: os: assign sys_notify callback default to NULL...

...instead of numeric zero.

Current usage violates MISRA rule 11.9.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-04-27 11:40:56 -07:00 committed by Anas Nashif
commit 143a18b36b

View file

@ -49,7 +49,7 @@ sys_notify_generic_callback sys_notify_finalize(struct sys_notify *notify,
int res)
{
struct k_poll_signal *sig = NULL;
sys_notify_generic_callback rv = 0;
sys_notify_generic_callback rv = NULL;
uint32_t method = sys_notify_get_method(notify);
/* Store the result and capture secondary notification