]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/msm/dpu: Remove dead-code in dpu_encoder_helper_reset_mixers()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 9 Oct 2025 20:09:32 +0000 (22:09 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Fri, 14 Nov 2025 03:51:39 +0000 (05:51 +0200)
'mixer' is only zeroed and is not use. Remove it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Acked-By: Mahesh Bharadwaj Kannan <mahesh.kannan@oss.qualcomm.com>
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 <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c

index 258edaa18fc02f837122c84842b59f2cee68d66e..94de83e125f1a05a3cde9cd7a49a805368fe1cdc 100644 (file)
@@ -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);