[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-e2a5f18a1ba11e8b1e9ee53b6fca4be12bb5749e@git.kernel.org>
Date: Wed, 9 Mar 2016 03:44:41 -0800
From: tip-bot for Josh Poimboeuf <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: palves@...hat.com, luto@...nel.org, akpm@...ux-foundation.org,
bernd@...rovitsch.priv.at, hpa@...or.com,
chris.j.arges@...onical.com, tglx@...utronix.de,
namhyung@...il.com, peterz@...radead.org,
torvalds@...ux-foundation.org, acme@...radead.org,
linux-kernel@...r.kernel.org, acme@...nel.org, mingo@...nel.org,
bp@...en8.de, mmarek@...e.cz, jpoimboe@...hat.com, jslaby@...e.cz
Subject: [tip:core/objtool] objtool: Remove superflous INIT_LIST_HEAD
Commit-ID: e2a5f18a1ba11e8b1e9ee53b6fca4be12bb5749e
Gitweb: http://git.kernel.org/tip/e2a5f18a1ba11e8b1e9ee53b6fca4be12bb5749e
Author: Josh Poimboeuf <jpoimboe@...hat.com>
AuthorDate: Wed, 9 Mar 2016 00:06:56 -0600
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Wed, 9 Mar 2016 10:48:08 +0100
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 <jpoimboe@...hat.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Andy Lutomirski <luto@...nel.org>
Cc: Arnaldo Carvalho de Melo <acme@...radead.org>
Cc: Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: Bernd Petrovitsch <bernd@...rovitsch.priv.at>
Cc: Borislav Petkov <bp@...en8.de>
Cc: Chris J Arges <chris.j.arges@...onical.com>
Cc: Jiri Slaby <jslaby@...e.cz>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Michal Marek <mmarek@...e.cz>
Cc: Namhyung Kim <namhyung@...il.com>
Cc: Pedro Alves <palves@...hat.com>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: live-patching@...r.kernel.org
Link: http://lkml.kernel.org/r/be6e21d7eec1f072095d22a1cbe144057135e097.1457502970.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
tools/objtool/builtin-check.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tools/objtool/builtin-check.c b/tools/objtool/builtin-check.c
index 46a8985..a974f295 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))
Powered by blists - more mailing lists