]> git.baikalelectronics.ru Git - kernel.git/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)
commitb2c1e9d95e79171723520dcd0c3df86b349f838c
treec55f57c1d909ffbdebfe02d37af34888aaaac8a3
parent013980d2354a5856ff37c9707330277963f87d40
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