]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dpu: fix error handling around dpu_hw_vbif_init
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 15 Jun 2022 12:57:02 +0000 (15:57 +0300)
committerRob Clark <robdclark@chromium.org>
Sun, 18 Sep 2022 16:38:02 +0000 (09:38 -0700)
commite5d18d42dc314f1b5ff91240ffd0f592942a85cf
tree9b691ce07b5635d91608069c37034fc89e91124a
parent53004bc42db60fc7f03ffb531f89b85139204564
drm/msm/dpu: fix error handling around dpu_hw_vbif_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 dpu_hw_vbif_init() function can not return NULL.
So, replace corresponding IS_ERR_OR_NULL() call with IS_ERR().

Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/489570/
Link: https://lore.kernel.org/r/20220615125703.24647-2-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c