Skip to content

Commit c62f981

Browse files
Andi KleenIngo Molnar
authored andcommitted
perf, gcc-4.6: Fix set but unused variable
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>
1 parent 00e8976 commit c62f981

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎arch/x86/kernel/cpu/perf_event.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,6 @@ static int x86_pmu_handle_irq(struct pt_regs *regs)
11521152
struct perf_sample_data data;
11531153
struct cpu_hw_events *cpuc;
11541154
struct perf_event *event;
1155-
struct hw_perf_event *hwc;
11561155
int idx, handled = 0;
11571156
u64 val;
11581157

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

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

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

0 commit comments

Comments
 (0)