drm/msm: Remove unused variables 'top'
PATCH 1/1 drm/msm: Remove unused variables 'top'
'commit 1e5df24b996c ("drm/msm/dpu: drop length from struct dpu_hw_blk_reg_map")' 'commit 9403f9a42c88 ("drm/msm/dpu: merge base_off with blk_off in struct dpu_hw_blk_reg_map")' These commits had merged hw.blk_off and hw.blk_off to mdp.
So we don't need to get dpu_hw_mdp in dpu_kms_mdp_snapshot() now.
Since there is no code using 'top' in this function. Remove it.
--- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +0 -4
@@ -902,13 +902,9 @@ static void dpu_kms_mdp_snapshot(struct msm_disp_state *disp_state, struct msm_kint i;struct dpu_kms *dpu_kms;const struct dpu_mdss_cfg *cat; -struct dpu_hw_mdp *top; dpu_kms =to_dpu_kms (kms); - cat = dpu_kms->catalog; - top = dpu_kms->hw_mdp; -pm_runtime_get_sync (&dpu_kms->pdev->dev);/* dump CTL sub-blocks HW regs info */
Signature · 1 line
2.33.0
Quoted 8 lines · Chen Zhongjin
'commit
1e5df24b996c("drm/msm/dpu: drop length from structdpu_hw_blk_reg_map")' 'commit9403f9a42c88("drm/msm/dpu: mergebase_offwithblk_offin structdpu_hw_blk_reg_map")' These commits had merged hw.blk_off and hw.blk_off to mdp.
So we don't need to getdpu_hw_mdpindpu_kms_mdp_snapshot()now.Since there is no code using 'top' in this function. Remove it.
Signed-off-by Chen Zhongjin <[email protected]>
This has already been fixed with:
https://gitlab.freedesktop.org/drm/msm/-/commit/4bca876458caf7c105ab2ae9d80ff2cc9c60388d
Quoted 22 lines
--- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 ---- 1 file changed, 4 deletions(-)drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +0
-4@@ -902,13 +902,9 @@ static void dpu_kms_mdp_snapshot(struct msm_disp_state *disp_state, struct msm_kint i;struct dpu_kms *dpu_kms;const struct dpu_mdss_cfg *cat; -struct dpu_hw_mdp *top; dpu_kms =to_dpu_kms (kms); - cat = dpu_kms->catalog; - top = dpu_kms->hw_mdp; -pm_runtime_get_sync (&dpu_kms->pdev->dev);/* dump CTL sub-blocks HW regs info */