From: Christophe JAILLET Date: Thu, 9 Oct 2025 20:09:32 +0000 (+0200) Subject: drm/msm/dpu: Remove dead-code in dpu_encoder_helper_reset_mixers() X-Git-Tag: v6.19-rc1~157^2~6^2~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=762dd3eb0c0f51bb4f2ab00c2cd73d6534483752;p=thirdparty%2Flinux.git drm/msm/dpu: Remove dead-code in dpu_encoder_helper_reset_mixers() 'mixer' is only zeroed and is not use. Remove it. Signed-off-by: Christophe JAILLET Reviewed-by: Dmitry Baryshkov Acked-By: Mahesh Bharadwaj Kannan Fixes: ae4d721ce100 ("drm/msm/dpu: add an API to reset the encoder related hw blocks") Patchwork: https://patchwork.freedesktop.org/patch/679854/ Link: https://lore.kernel.org/r/8e3b2fbbf5440aa219feb667f5423c7479eb2656.1760040536.git.christophe.jaillet@wanadoo.fr Signed-off-by: Dmitry Baryshkov --- diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c index 258edaa18fc02..94de83e125f1a 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c @@ -2171,15 +2171,12 @@ void dpu_encoder_kickoff(struct drm_encoder *drm_enc) static void dpu_encoder_helper_reset_mixers(struct dpu_encoder_phys *phys_enc) { - struct dpu_hw_mixer_cfg mixer; int i, num_lm; struct dpu_global_state *global_state; struct dpu_hw_blk *hw_lm[2]; struct dpu_hw_mixer *hw_mixer[2]; struct dpu_hw_ctl *ctl = phys_enc->hw_ctl; - memset(&mixer, 0, sizeof(mixer)); - /* reset all mixers for this encoder */ if (ctl->ops.clear_all_blendstages) ctl->ops.clear_all_blendstages(ctl);