]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2022 10:27:59 +0000 (12:27 +0200)
commit2bbcb63c176c5021a6cfddc10afa48732785f71a
treeafdbb58b56b0137134ab82ffbe645816d15656cd
parent9b9fdaa56843af7e69d3f21b77b2c42e76529e12
perf/arm_pmu_platform: fix tests for platform_get_irq() failure

[ Upstream commit b2c1e9d95e79171723520dcd0c3df86b349f838c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/perf/arm_pmu_platform.c