diff options
author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2022-01-22 00:06:17 +0300 |
---|---|---|
committer | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2022-02-18 20:15:11 +0300 |
commit | 740828c73a36028f560e378f0007717bcfa27a02 (patch) | |
tree | 608be15ed9eb907f77389cb8bb4f0ca0c3c3fbeb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ae57fdf0f21768650a4de9e55a1df203adcb9956 (diff) | |
download | linux-740828c73a36028f560e378f0007717bcfa27a02.tar.xz |
drm/msm/dpu: fix error handling in dpu_rm_init
Using IS_ERR_OR_NULL() together with PTR_ERR() is a typical mistake. If
the value is NULL, then the function will return 0 instead of a proper
return code. Moreover none of dpu_hw_*_init() functions can return NULL.
So, replace all dpu_rm_init()'s IS_ERR_OR_NULL() calls with IS_ERR().
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Link: https://lore.kernel.org/r/20220121210618.3482550-6-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions