param_used: pull some stuff out into separate functions
commitb2a919d1c2de444904420896dc312ac909b0352a
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Oct 2017 10:38:54 +0000 (11 13:38 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Oct 2017 10:38:54 +0000 (11 13:38 +0300)
tree3c097ddafd2ba163c4e0223e2b9c1d0fda9f50fa
parent698b23186634e4c77b960806b70977c149383aab
param_used: pull some stuff out into separate functions

This doesn't change behavior, it just shifts code around.  I've created
two new functions that look at "__mptr - offset" and give you either the
offset or the parameter.

Also I made recursion a global, because I want to stop recursion earlier.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_param_used.c