[PATCH] drivers/perf: fix return value check in ali_drw_pmu_probe()

Catalin Marinas catalin.marinas at arm.com
Fri Oct 7 09:44:05 PDT 2022


On Sat, 24 Sep 2022 11:21:27 +0800, Sun Ke wrote:
> In case of error, devm_ioremap_resource() returns ERR_PTR(),
> and never returns NULL. The NULL test in the return value
> check should be replaced with IS_ERR().
> 
> 

Applied to arm64 (for-next/core), thanks!

[1/1] drivers/perf: fix return value check in ali_drw_pmu_probe()
      https://git.kernel.org/arm64/c/ad0112f2d54c

-- 
Catalin




More information about the linux-arm-kernel mailing list