diff options
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_p4.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_p4.c b/arch/x86/kernel/cpu/perf_event_p4.c index ca40180c41d4..b8c2d379eea6 100644 --- a/arch/x86/kernel/cpu/perf_event_p4.c +++ b/arch/x86/kernel/cpu/perf_event_p4.c | |||
@@ -406,11 +406,6 @@ static u64 p4_pmu_event_map(int hw_event) | |||
406 | unsigned int esel; | 406 | unsigned int esel; |
407 | u64 config; | 407 | u64 config; |
408 | 408 | ||
409 | if (hw_event > ARRAY_SIZE(p4_general_events)) { | ||
410 | printk_once(KERN_ERR "P4 PMU: Bad index: %i\n", hw_event); | ||
411 | return 0; | ||
412 | } | ||
413 | |||
414 | config = p4_general_events[hw_event]; | 409 | config = p4_general_events[hw_event]; |
415 | bind = p4_config_get_bind(config); | 410 | bind = p4_config_get_bind(config); |
416 | esel = P4_OPCODE_ESEL(bind->opcode); | 411 | esel = P4_OPCODE_ESEL(bind->opcode); |