diff options
author | Wei Yongjun <[email protected]> | 2021-05-19 14:16:37 +0000 |
---|---|---|
committer | Philipp Zabel <[email protected]> | 2021-06-07 11:26:31 +0200 |
commit | 91105ed604e4ea7075a35a1ef8bc1782d347290e (patch) | |
tree | c5f4ad4ddc664a3ad4aafa7295717486dd10a9b5 /scripts/gdb/linux/timerlist.py | |
parent | 747aeec9ac0612fa107a6032d4e475112e8820fb (diff) |
reset: mchp: sparx5: fix return value check in mchp_sparx5_map_io()
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 <[email protected]>
Signed-off-by: Wei Yongjun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Philipp Zabel <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions