Skip to content

Commit

Permalink
perf: Trivial cleanup of duplicate code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Robert Richter authored and Ingo Molnar committed Apr 26, 2012
1 parent 3dbe927 commit 10c2502
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/x86/kernel/cpu/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 10c2502

Please sign in to comment.