All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf/x86: remove unused variable in nhmex_rbox_alter_er()
@ 2012-10-22  8:51 Wei Yongjun
  2012-10-24 12:58 ` [tip:perf/urgent] perf/x86: Remove " tip-bot for Wei Yongjun
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2012-10-22  8:51 UTC (permalink / raw)
  To: a.p.zijlstra, paulus, mingo, acme, tglx, hpa
  Cc: yongjun_wei, x86, linux-kernel

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

The variable port is initialized but never used
otherwise, so remove the unused variable.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 arch/x86/kernel/cpu/perf_event_intel_uncore.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.c b/arch/x86/kernel/cpu/perf_event_intel_uncore.c
index 99d96a4..e7d4061 100644
--- a/arch/x86/kernel/cpu/perf_event_intel_uncore.c
+++ b/arch/x86/kernel/cpu/perf_event_intel_uncore.c
@@ -1547,7 +1547,6 @@ void nhmex_rbox_alter_er(struct intel_uncore_box *box, struct perf_event *event)
 {
 	struct hw_perf_event *hwc = &event->hw;
 	struct hw_perf_event_extra *reg1 = &hwc->extra_reg;
-	int port;
 
 	/* adjust the main event selector and extra register index */
 	if (reg1->idx % 2) {
@@ -1559,7 +1558,6 @@ void nhmex_rbox_alter_er(struct intel_uncore_box *box, struct perf_event *event)
 	}
 
 	/* adjust extra register config */
-	port = reg1->idx / 6 + box->pmu->pmu_idx * 4;
 	switch (reg1->idx % 6) {
 	case 2:
 		/* shift the 8~15 bits to the 0~7 bits */


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-24 12:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-22  8:51 [PATCH] perf/x86: remove unused variable in nhmex_rbox_alter_er() Wei Yongjun
2012-10-24 12:58 ` [tip:perf/urgent] perf/x86: Remove " tip-bot for Wei Yongjun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.