diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-06-28 22:02:48 +0800 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2022-07-05 08:41:20 +0800 |
commit | edf12b913abb69abce4cd6996398a4ce23e5b047 (patch) | |
tree | 8cab5fe9decbcde2824d798ad576fdb8f7ddfd21 /tools/perf/scripts/python/sched-migration.py | |
parent | 1ec32a4f1c694b5424f6fab1a977d3e556c539bf (diff) |
soc: fsl: guts: fix return value check in fsl_guts_init()
In case of error, of_iomap() returns NULL pointer not ERR_PTR().
The IS_ERR() test in the return value check should be replaced
with NULL test and return -ENOMEM as error value.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions