Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <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>

authored by

Christophe JAILLET and committed by
Dmitry Baryshkov
762dd3eb 227ec962

-3
-3
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
··· 2171 2171 2172 2172 static void dpu_encoder_helper_reset_mixers(struct dpu_encoder_phys *phys_enc) 2173 2173 { 2174 - struct dpu_hw_mixer_cfg mixer; 2175 2174 int i, num_lm; 2176 2175 struct dpu_global_state *global_state; 2177 2176 struct dpu_hw_blk *hw_lm[2]; 2178 2177 struct dpu_hw_mixer *hw_mixer[2]; 2179 2178 struct dpu_hw_ctl *ctl = phys_enc->hw_ctl; 2180 - 2181 - memset(&mixer, 0, sizeof(mixer)); 2182 2179 2183 2180 /* reset all mixers for this encoder */ 2184 2181 if (ctl->ops.clear_all_blendstages)