objtool: remove unneeded variable from add_prefix_symbols()
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 objtool: remove unneeded variable from add_prefix_symbols()
fix the following coccicheck warning:
tools/objtool/check.c:4135:5-13: Unneeded variable: "warnings". Return "0".
Signed-off-by Mingtong Bao <[email protected]>
--- tools/objtool/check.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
tools/objtool/check.c +1 -2
@@ -4132,7 +4132,6 @@ static int add_prefix_symbols(struct objtool_file *file) {struct section *sec;struct symbol *func; -int warnings =0 ;for_each_sec (file, sec) {if (!(sec->sh.sh_flags &SHF_EXECINSTR ))
@@ -4146,7 +4145,7 @@ static int add_prefix_symbols(struct objtool_file *file) } } -return warnings; +return 0 ; } static int validate_symbol(struct objtool_file *file, struct section
*sec,