perf: Trivial cleanup of duplicate code
authorRobert Richter <[email protected]>
Thu, 5 Apr 2012 16:24:41 +0000 (18:24 +0200)
committerIngo Molnar <[email protected]>
Thu, 26 Apr 2012 11:52:50 +0000 (13:52 +0200)
Removing duplicate code.

Signed-off-by: Robert Richter <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
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);