param_key: use get_name_sym_from_key() instead of return_state_to_var_sym()
commit43c84a6d17aecc7ca53892570156f05aeae69bce
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 25 Sep 2020 10:12:32 +0000 (25 13:12 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 25 Sep 2020 10:12:32 +0000 (25 13:12 +0300)
tree879d132ec9f2961a558d676869f979f76999e2f4
parent8572097283a087ffd2b3a80eec7116f0fb51d2ec
param_key: use get_name_sym_from_key() instead of return_state_to_var_sym()

These functions are basically the same.  I accidentally wrote two copies
of the same thing.  The get_name_sym_from_key() is slightly more flexible
because it handles -2 params as well.

I haven't tested this patch.  I'm trying to clean this up quickly.  So I
will just test and apply fixes on top if something breaks.

Hopefully, we can move to just one var/sym to param/key code path and one
path to reverse the mapping.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.h
smatch_capped.c
smatch_constraints.c
smatch_kernel_user_data.c
smatch_param_key.c
smatch_untracked_param.c