perf: Trivial cleanup of duplicate code
authorRobert Richter <robert.richter@amd.com>
Thu, 5 Apr 2012 16:24:41 +0000 (18:24 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 26 Apr 2012 11:52:50 +0000 (13:52 +0200)
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>
arch/x86/kernel/cpu/perf_event.c

index bb8e03407e183fa24be61cf6c9432c7a7ffe68c9..e33e9cf160eb9c3257d47b95e657bd458b13dc91 100644 (file)
@@ -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);