From: Josh Poimboeuf Date: Wed, 9 Mar 2016 06:06:56 +0000 (-0600) Subject: objtool: Remove superflous INIT_LIST_HEAD X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e2a5f18a1ba11e8b1e9ee53b6fca4be12bb5749e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git objtool: Remove superflous INIT_LIST_HEAD The insns list is initialized twice, in cmd_check() and in decode_instructions(). Remove the latter. Signed-off-by: Josh Poimboeuf Cc: Andrew Morton Cc: Andy Lutomirski Cc: Arnaldo Carvalho de Melo Cc: Arnaldo Carvalho de Melo Cc: Bernd Petrovitsch Cc: Borislav Petkov Cc: Chris J Arges Cc: Jiri Slaby Cc: Linus Torvalds Cc: Michal Marek Cc: Namhyung Kim Cc: Pedro Alves Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: live-patching@vger.kernel.org Link: http://lkml.kernel.org/r/be6e21d7eec1f072095d22a1cbe144057135e097.1457502970.git.jpoimboe@redhat.com Signed-off-by: Ingo Molnar --- diff --git a/tools/objtool/builtin-check.c b/tools/objtool/builtin-check.c index 46a898595390..a974f295dc42 100644 --- a/tools/objtool/builtin-check.c +++ b/tools/objtool/builtin-check.c @@ -249,8 +249,6 @@ static int decode_instructions(struct objtool_file *file) struct instruction *insn; int ret; - INIT_LIST_HEAD(&file->insns); - list_for_each_entry(sec, &file->elf->sections, list) { if (!(sec->sh.sh_flags & SHF_EXECINSTR))