9
0
Fork 0

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:
Fabio Estevam 2014-02-21 11:59:48 -03:00 committed by Sascha Hauer
parent 409df4db89
commit 3472c67ae1
1 changed files with 1 additions and 1 deletions

View File

@ -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