• zhengbin's avatar
    drm/msm/dpu: Remove set but not used variables 'mode', 'dpu_kms', 'priv' · 8fbd534b
    zhengbin authored
    Fixes gcc '-Wunused-but-set-variable' warning:
    
    drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c: In function dpu_encoder_virt_disable:
    drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1199:27: warning: variable mode set but not used [-Wunused-but-set-variable]
    drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c: In function _dpu_encoder_init_debugfs:
    drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1963:18: warning: variable dpu_kms set but not used [-Wunused-but-set-variable]
    drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c: In function dpu_encoder_frame_done_timeout:
    drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:2183:26: warning: variable priv set but not used [-Wunused-but-set-variable]
    
    They are not used since commit 25fdd593 ("drm/msm:
    Add SDM845 DPU support")
    Reported-by: default avatarHulk Robot <hulkci@huawei.com>
    Signed-off-by: default avatarzhengbin <zhengbin13@huawei.com>
    Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
    8fbd534b
dpu_encoder.c 61.6 KB