[PATCH -next] reset: mchp: sparx5: fix return value check in mchp_sparx5_map_io()

Philipp Zabel p.zabel at pengutronix.de
Mon Jun 7 02:23:28 PDT 2021


On Wed, 2021-05-19 at 14:16 +0000, Wei Yongjun wrote:
> In case of error, the function devm_platform_get_and_ioremap_resource()
> returns ERR_PTR() and never returns NULL. The NULL test in the return
> value check should be replaced with IS_ERR().
> 
> Fixes: 453ed4283beb ("reset: mchp: sparx5: add switch reset driver")
> Reported-by: Hulk Robot <hulkci at huawei.com>
> Signed-off-by: Wei Yongjun <weiyongjun1 at huawei.com>

Thank you, applied to reset/fixes.

regards
Philipp



More information about the linux-arm-kernel mailing list