perf: arm_spe: Remove unnecessary zero check on 'nr_pages'
authorluanshi <zhangliguang@linux.alibaba.com>
Wed, 26 Feb 2020 04:25:06 +0000 (12:25 +0800)
committerWill Deacon <will@kernel.org>
Mon, 2 Mar 2020 11:27:21 +0000 (11:27 +0000)
commitaaa19727159ef5616219a4b9dad7a84e693aebf5
tree86bed34b6447f8c2da24327845958e83192dbfe6
parentf8788d86ab28f61f7b46eb6be375f8a726783636
perf: arm_spe: Remove unnecessary zero check on 'nr_pages'

We already check that the 'nr_pages' is > 2, so there's no need to check
that it's != 0 later on.

Signed-off-by: Liguang Zhang <zhangliguang@linux.alibaba.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_spe_pmu.c