arm64: perf: Remove unnecessary event_idx check
authorQi Liu <liuqi115@huawei.com>
Fri, 4 Sep 2020 09:57:38 +0000 (17:57 +0800)
committerWill Deacon <will@kernel.org>
Mon, 7 Sep 2020 17:35:39 +0000 (18:35 +0100)
commit44fdf4ed2693eb05dbfa83beaa6fe5fbd0c2f6d0
tree434e756cb756d30039818ba3c09bf8614b34e627
parentd51eb416fa111c1129c46ea3320faab36bf4c99c
arm64: perf: Remove unnecessary event_idx check

event_idx is obtained from armv8pmu_get_event_idx(), and this idx must be
between ARMV8_IDX_CYCLE_COUNTER and cpu_pmu->num_events. So it's unnecessary
to do this check. Let's remove it.

Signed-off-by: Qi Liu <liuqi115@huawei.com>
Link: https://lore.kernel.org/r/1599213458-28394-1-git-send-email-liuqi115@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/perf_event.c