lib: math: Return NULL pointer
Fix the following sparse warning: lib/math.c:309:16: warning: Using plain integer as NULL pointer Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
409df4db89
commit
3472c67ae1
|
@ -306,7 +306,7 @@ static const char *arith_lookup_val(arith_state_t *math_state, var_or_num_t *t)
|
|||
/* treat undefined var as 0 */
|
||||
t->val = 0;
|
||||
}
|
||||
return 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* "Applying" a token means performing it on the top elements on the integer
|
||||
|
|
Loading…
Reference in New Issue