Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andi Kleen and committed by
Ingo Molnar
c62f981f 00e89762

-2
-2
arch/x86/kernel/cpu/perf_event.c
··· 1152 1152 struct perf_sample_data data; 1153 1153 struct cpu_hw_events *cpuc; 1154 1154 struct perf_event *event; 1155 - struct hw_perf_event *hwc; 1156 1155 int idx, handled = 0; 1157 1156 u64 val; 1158 1157 ··· 1172 1173 } 1173 1174 1174 1175 event = cpuc->events[idx]; 1175 - hwc = &event->hw; 1176 1176 1177 1177 val = x86_perf_event_update(event); 1178 1178 if (val & (1ULL << (x86_pmu.cntval_bits - 1)))