drm/msm/dpu: avoid unnecessary check in DPU reservations
authorKalyan Thota <quic_kalyant@quicinc.com>
Mon, 13 Feb 2023 11:11:43 +0000 (03:11 -0800)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 6 Apr 2023 17:29:43 +0000 (20:29 +0300)
commitf4eddf1d78744d9e4d1664236ad6c9b76be9a877
tree1e9d1c0b056f0dc66bd8f9a431bc1b5e48c4611e
parent8aa22aaa1fc316b93a39209299227d5f78434828
drm/msm/dpu: avoid unnecessary check in DPU reservations

Return immediately on failure, this will make dpu reservations
part look cleaner.

Signed-off-by: Kalyan Thota <quic_kalyant@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Patchwork: https://patchwork.freedesktop.org/patch/522442/
Link: https://lore.kernel.org/r/1676286704-818-4-git-send-email-quic_kalyant@quicinc.com
[DB: fixed merge conflict with b6975693846b, retain those changes]
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c