Messages in this thread | | | Subject | Re: [PATCH -next] reset: mchp: sparx5: fix return value check in mchp_sparx5_map_io() | From | Philipp Zabel <> | Date | Mon, 07 Jun 2021 11:23:28 +0200 |
| |
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@huawei.com> > Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Thank you, applied to reset/fixes.
regards Philipp
| |