From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751372AbcEAHhP (ORCPT ); Sun, 1 May 2016 03:37:15 -0400 Received: from terminus.zytor.com ([198.137.202.10]:40170 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750789AbcEAHhM (ORCPT ); Sun, 1 May 2016 03:37:12 -0400 Date: Sun, 1 May 2016 00:36:47 -0700 From: tip-bot for Florian Fainelli Message-ID: Cc: tglx@linutronix.de, mingo@kernel.org, f.fainelli@gmail.com, ast@kernel.org, acme@redhat.com, wangnan0@huawei.com, linux-kernel@vger.kernel.org, jolsa@kernel.org, hpa@zytor.com Reply-To: f.fainelli@gmail.com, ast@kernel.org, tglx@linutronix.de, mingo@kernel.org, wangnan0@huawei.com, linux-kernel@vger.kernel.org, jolsa@kernel.org, hpa@zytor.com, acme@redhat.com In-Reply-To: <1461551694-5512-2-git-send-email-f.fainelli@gmail.com> References: <1461551694-5512-2-git-send-email-f.fainelli@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] bpf tools: Remove expression with no effect Git-Commit-ID: a431d67934dfe9ffbe65972b0dbe576331595186 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: a431d67934dfe9ffbe65972b0dbe576331595186 Gitweb: http://git.kernel.org/tip/a431d67934dfe9ffbe65972b0dbe576331595186 Author: Florian Fainelli AuthorDate: Sun, 24 Apr 2016 19:34:53 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 28 Apr 2016 09:58:57 -0300 bpf tools: Remove expression with no effect Assigning "attr" to "attr" does not have any effect, but was caught by Coverity, so let's remove this. Reported-by: coverity (CID 1354720) Signed-off-by: Florian Fainelli Tested-by: Wang Nan Acked-by: Alexei Starovoitov Cc: Jiri Olsa Fixes: 1b76c13e4b36 ("bpf tools: Introduce 'bpf' library and add bpf feature check") Link: http://lkml.kernel.org/r/1461551694-5512-2-git-send-email-f.fainelli@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/build/feature/test-bpf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/build/feature/test-bpf.c b/tools/build/feature/test-bpf.c index b389026..8236df9 100644 --- a/tools/build/feature/test-bpf.c +++ b/tools/build/feature/test-bpf.c @@ -27,7 +27,6 @@ int main(void) attr.log_level = 0; attr.kern_version = 0; - attr = attr; /* * Test existence of __NR_bpf and BPF_PROG_LOAD. * This call should fail if we run the testcase.