Modify the return hook to pass an expression instead of the statement.
commit23c042e5a5e686feb0b096956ca8dd433086c337
authorDan Carpenter <error27@gmail.com>
Sat, 14 Nov 2009 11:02:04 +0000 (14 13:02 +0200)
committerDan Carpenter <error27@gmail.com>
Sat, 14 Nov 2009 11:02:04 +0000 (14 13:02 +0200)
tree7f99b8c495d4e093a554ece17fd13613d45e4a58
parenta736e2b885105e9cffaf53764e184f8bf4464fce
Modify the return hook to pass an expression instead of the statement.

It was silly to pass the whole statement instead of just the ret_value
expression.

The notable thing about this patch is that it is now possible to pass
a NULL value to clients.  (ret_value is sometimes NULL).  Now every hook
function needs to assume that it is possible to receive a NULL parameter.

Signed-off-by: Dan Carpenter <error27@gmail.com>
12 files changed:
check_allocation_funcs.c
check_balanced.c
check_err_ptr.c
check_frees_argument.c
check_held_dev.c
check_leaks.c
check_locking.c
check_memory.c
check_puts_argument.c
check_template.c
smatch_flow.c
smatch_hooks.c