Skip to contentSkip to conversation

drm/msm/disp/dpu1: remove superfluous init

PATCH New Vinod Koul 1 participant 1 message May 25, 2022

Subsystems (3)
lore
Share & tools
lore

Vinod Koul

author
#0 lore raw

PATCH v2 1/1 drm/msm/disp/dpu1: remove superfluous init

Commit 58dca9810749 ("drm/msm/disp/dpu1: Add support for DSC in encoder") added dsc_common_mode variable which was set to zero but then again programmed, so drop the superfluous init.

Fixes 58dca9810749 ("drm/msm/disp/dpu1: Add support for DSC in encoder")

---
changes in v2:
- add r-b from Dmitry & Abhinav
- fix typo for superfluous

 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +0 -1
index 51f24ba68375..388125c8bda1 100644
@@ -1798,7 +1798,6 @@ static void dpu_encoder_prep_dsc(struct dpu_encoder_virt *dpu_enc,
 		}
 	}
 
-	dsc_common_mode = 0;
 	pic_width = dsc->drm->pic_width;
 
 	dsc_common_mode = DSC_MODE_MULTIPLEX | DSC_MODE_SPLIT_PANEL;
Signature · 1 line
2.34.1