]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2022 10:43:49 +0000 (12:43 +0200)
commit719b2021d77859e7af4b247f2b70b264ae71e2c4
tree4bfd7834ce7695b330a82eaba522ad065c7f317e
parent3d513ebf8c3bc8c6a5e4b4f4d8986bebdbff8475
perf/arm_pmu_platform: fix tests for platform_get_irq() failure

[ Upstream commit 6bb0d64c100091e131cd16710b62fda3319cd0af ]

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