diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-02-21 11:59:48 -0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-24 08:59:04 +0100 |
commit | 3472c67ae174c36573b8921b41e1f61361c5972c (patch) | |
tree | 3675d26ebf59110b4e32b170c4821b73f08f3a83 /lib | |
parent | 409df4db896b134a20c33282063caf2baf07c633 (diff) | |
download | barebox-3472c67ae174c36573b8921b41e1f61361c5972c.tar.gz barebox-3472c67ae174c36573b8921b41e1f61361c5972c.tar.xz |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/math.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/math.c b/lib/math.c index 2e53b09e6c..19c8f08ba8 100644 --- a/lib/math.c +++ b/lib/math.c @@ -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 |