Skip to content
Commit d4441b81 authored by Yu Zhe's avatar Yu Zhe Committed by Greg Kroah-Hartman
Browse files

perf/arm_pmu_platform: fix tests for platform_get_irq() failure



[ Upstream commit 6bb0d64c ]

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

Signed-off-by: default avatarYu Zhe <yuzhe@nfschina.com>
Link: https://lore.kernel.org/r/20220825011844.8536-1-yuzhe@nfschina.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 55032fb1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment