From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753453AbbE0KJ2 (ORCPT ); Wed, 27 May 2015 06:09:28 -0400 Received: from terminus.zytor.com ([198.137.202.10]:33691 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752783AbbE0KJZ (ORCPT ); Wed, 27 May 2015 06:09:25 -0400 Date: Wed, 27 May 2015 03:08:53 -0700 From: tip-bot for Alexander Shishkin Message-ID: Cc: tglx@linutronix.de, paulus@samba.org, alexander.shishkin@linux.intel.com, mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, torvalds@linux-foundation.org, peterz@infradead.org Reply-To: mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, torvalds@linux-foundation.org, peterz@infradead.org, tglx@linutronix.de, paulus@samba.org, alexander.shishkin@linux.intel.com In-Reply-To: <1432308626-18845-8-git-send-email-alexander.shishkin@linux.intel.com> References: <1432308626-18845-8-git-send-email-alexander.shishkin@linux.intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf/x86/intel/pt: Remove redundant variable declaration Git-Commit-ID: a82d24edfeaf1ed244cf8b969916840c6feb5165 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: a82d24edfeaf1ed244cf8b969916840c6feb5165 Gitweb: http://git.kernel.org/tip/a82d24edfeaf1ed244cf8b969916840c6feb5165 Author: Alexander Shishkin AuthorDate: Fri, 22 May 2015 18:30:26 +0300 Committer: Ingo Molnar CommitDate: Wed, 27 May 2015 09:17:48 +0200 perf/x86/intel/pt: Remove redundant variable declaration There is a 'pt' variable in the outer scope of pt_event_stop() with the same type, we don't really need another one in the inner scope. This patch removes the redundant variable declaration. Signed-off-by: Alexander Shishkin Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: acme@infradead.org Cc: adrian.hunter@intel.com Cc: hpa@zytor.com Link: http://lkml.kernel.org/r/1432308626-18845-8-git-send-email-alexander.shishkin@linux.intel.com Signed-off-by: Ingo Molnar --- arch/x86/kernel/cpu/perf_event_intel_pt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kernel/cpu/perf_event_intel_pt.c b/arch/x86/kernel/cpu/perf_event_intel_pt.c index a2d4071..59596d2 100644 --- a/arch/x86/kernel/cpu/perf_event_intel_pt.c +++ b/arch/x86/kernel/cpu/perf_event_intel_pt.c @@ -955,7 +955,6 @@ static void pt_event_stop(struct perf_event *event, int mode) event->hw.state = PERF_HES_STOPPED; if (mode & PERF_EF_UPDATE) { - struct pt *pt = this_cpu_ptr(&pt_ctx); struct pt_buffer *buf = perf_get_aux(&pt->handle); if (!buf)