Skip to content

Commit fb0af2d

Browse files
wb-zjp846396Abhinav Kumar
authored andcommitted
drm/msm/dpu: Remove unused code
Eliminate the follow clang warning: drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:544:33: warning: variable ‘mode’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Fixes: 3177589("drm/msm/dpu: encoder: drop unused mode_fixup callback") Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/487136/ Link: https://lore.kernel.org/r/20220524081413.37895-1-jiapeng.chong@linux.alibaba.com Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
1 parent 6daf7e4 commit fb0af2d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,6 @@ static int dpu_encoder_virt_atomic_check(
541541
struct dpu_encoder_virt *dpu_enc;
542542
struct msm_drm_private *priv;
543543
struct dpu_kms *dpu_kms;
544-
const struct drm_display_mode *mode;
545544
struct drm_display_mode *adj_mode;
546545
struct msm_display_topology topology;
547546
struct dpu_global_state *global_state;
@@ -559,7 +558,6 @@ static int dpu_encoder_virt_atomic_check(
559558

560559
priv = drm_enc->dev->dev_private;
561560
dpu_kms = to_dpu_kms(priv->kms);
562-
mode = &crtc_state->mode;
563561
adj_mode = &crtc_state->adjusted_mode;
564562
global_state = dpu_kms_get_global_state(crtc_state->state);
565563
if (IS_ERR(global_state))

0 commit comments

Comments
 (0)