Skip to content

Commit

Permalink
perf, gcc-4.6: Fix set but unused variable
Browse files Browse the repository at this point in the history
Just dead code I believe.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: andi@firstfloor.org
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Andi Kleen authored and Ingo Molnar committed Oct 5, 2010
1 parent 00e8976 commit c62f981
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/x86/kernel/cpu/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,6 @@ static int x86_pmu_handle_irq(struct pt_regs *regs)
struct perf_sample_data data;
struct cpu_hw_events *cpuc;
struct perf_event *event;
struct hw_perf_event *hwc;
int idx, handled = 0;
u64 val;

Expand All @@ -1173,7 +1172,6 @@ static int x86_pmu_handle_irq(struct pt_regs *regs)
}

event = cpuc->events[idx];
hwc = &event->hw;

val = x86_perf_event_update(event);
if (val & (1ULL << (x86_pmu.cntval_bits - 1)))
Expand Down

0 comments on commit c62f981

Please sign in to comment.