]> git.itanic.dy.fi Git - linux-stable/commit
perf/arm_pmu_platform: fix tests for platform_get_irq() failure
authorYu Zhe <yuzhe@nfschina.com>
Thu, 25 Aug 2022 01:18:44 +0000 (09:18 +0800)
committerWill Deacon <will@kernel.org>
Thu, 1 Sep 2022 11:01:40 +0000 (12:01 +0100)
commit6bb0d64c100091e131cd16710b62fda3319cd0af
treec55f57c1d909ffbdebfe02d37af34888aaaac8a3
parente62b9e6f25fc99be07c3b7b284262ee74ed645a9
perf/arm_pmu_platform: fix tests for platform_get_irq() failure

The platform_get_irq() returns negative error codes.  It can't actually
return zero.

Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Link: https://lore.kernel.org/r/20220825011844.8536-1-yuzhe@nfschina.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_pmu_platform.c