From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753585AbcCILqQ (ORCPT ); Wed, 9 Mar 2016 06:46:16 -0500 Received: from torg.zytor.com ([198.137.202.12]:37876 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753476AbcCILqD (ORCPT ); Wed, 9 Mar 2016 06:46:03 -0500 Date: Wed, 9 Mar 2016 03:44:41 -0800 From: tip-bot for Josh Poimboeuf Message-ID: Cc: palves@redhat.com, luto@kernel.org, akpm@linux-foundation.org, bernd@petrovitsch.priv.at, hpa@zytor.com, chris.j.arges@canonical.com, tglx@linutronix.de, namhyung@gmail.com, peterz@infradead.org, torvalds@linux-foundation.org, acme@infradead.org, linux-kernel@vger.kernel.org, acme@kernel.org, mingo@kernel.org, bp@alien8.de, mmarek@suse.cz, jpoimboe@redhat.com, jslaby@suse.cz Reply-To: mingo@kernel.org, acme@kernel.org, acme@infradead.org, linux-kernel@vger.kernel.org, jslaby@suse.cz, bp@alien8.de, jpoimboe@redhat.com, mmarek@suse.cz, luto@kernel.org, akpm@linux-foundation.org, chris.j.arges@canonical.com, hpa@zytor.com, bernd@petrovitsch.priv.at, palves@redhat.com, namhyung@gmail.com, peterz@infradead.org, tglx@linutronix.de, torvalds@linux-foundation.org In-Reply-To: References: To: linux-tip-commits@vger.kernel.org Subject: [tip:core/objtool] objtool: Remove superflous INIT_LIST_HEAD Git-Commit-ID: e2a5f18a1ba11e8b1e9ee53b6fca4be12bb5749e X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: e2a5f18a1ba11e8b1e9ee53b6fca4be12bb5749e Gitweb: http://git.kernel.org/tip/e2a5f18a1ba11e8b1e9ee53b6fca4be12bb5749e Author: Josh Poimboeuf AuthorDate: Wed, 9 Mar 2016 00:06:56 -0600 Committer: Ingo Molnar 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 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 --- 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))