diff options
author | Markus Elfring <[email protected]> | 2024-05-07 14:07:42 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-05-08 19:46:10 +0100 |
commit | c86f90e30a347ef0a28d0df3975c46389d0cc7fc (patch) | |
tree | d08395c7e62c0a5d401130d284412903c154d358 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | eda4923d78d634482227c0b189d9b7ca18824146 (diff) |
spmi: pmic-arb: Replace three IS_ERR() calls by null pointer checks in spmi_pmic_arb_probe()
The devm_ioremap() function does not return error pointers.
It returns NULL on error.
This issue was detected once more also by using the Coccinelle software.
Update three checks (and corresponding error codes) for failed
function calls accordingly.
Fixes: ffdfbafdc4f4 ("spmi: Use devm_spmi_controller_alloc()")
Fixes: 231601cd22bd ("spmi: pmic-arb: Add support for PMIC v7")
Signed-off-by: Markus Elfring <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Dmitry Baryshkov <[email protected]>
Reviewed-by: David Collins <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions