diff options
author | Robert Richter <robert.richter@amd.com> | 2012-04-05 18:24:41 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-04-26 13:52:50 +0200 |
commit | 10c250234c98928d1e15c4cea1c44b9a25354ccf (patch) | |
tree | 4a04b430a36ac0244e6f36f3e1cbca5c78e6f43e /arch/x86/kernel/cpu/perf_event.c | |
parent | 3dbe927b1eddcbd66da1653168e33122aca84f4e (diff) |
perf: Trivial cleanup of duplicate code
Removing duplicate code.
Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1333643084-26776-2-git-send-email-robert.richter@amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/cpu/perf_event.c')
-rw-r--r-- | arch/x86/kernel/cpu/perf_event.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c index bb8e03407e18..e33e9cf160eb 100644 --- a/arch/x86/kernel/cpu/perf_event.c +++ b/arch/x86/kernel/cpu/perf_event.c @@ -484,9 +484,6 @@ static int __x86_pmu_event_init(struct perf_event *event) /* mark unused */ event->hw.extra_reg.idx = EXTRA_REG_NONE; - - /* mark not used */ - event->hw.extra_reg.idx = EXTRA_REG_NONE; event->hw.branch_reg.idx = EXTRA_REG_NONE; return x86_pmu.hw_config(event); |