]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dpu: remove unused refcount for encoder_phys_wb
authorAbhinav Kumar <quic_abhinavk@quicinc.com>
Thu, 28 Apr 2022 18:15:59 +0000 (11:15 -0700)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 1 May 2022 23:39:35 +0000 (02:39 +0300)
commit1c8c79cf072449506d9028a184accbb61f962610
tree38fecbe9d6716505fa53dbd9b585ed6ae02b19ee
parent1868fc825c0149f8ec6228c773ce30c09d73c5e1
drm/msm/dpu: remove unused refcount for encoder_phys_wb

Remove the unused local variable refcount for encoder_phys_wb
as the one part of wb_enc is used directly.

changes in v2:
- remove usage of ret variable also
- remove the if (ret) code as it was dead-code anyway

Fixes: 3185234dbe41 ("drm/msm/dpu: introduce the dpu_encoder_phys_* for writeback")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/483919/
Link: https://lore.kernel.org/r/1651169759-29760-1-git-send-email-quic_abhinavk@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c