[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221010024010.2873633-1-chenzhongjin@huawei.com>
Date: Mon, 10 Oct 2022 10:40:10 +0800
From: Chen Zhongjin <chenzhongjin@...wei.com>
To: <linux-kernel@...r.kernel.org>, <linux-arm-msm@...r.kernel.org>,
<dri-devel@...ts.freedesktop.org>,
<freedreno@...ts.freedesktop.org>
CC: <robdclark@...il.com>, <quic_abhinavk@...cinc.com>,
<dmitry.baryshkov@...aro.org>, <sean@...rly.run>,
<airlied@...il.com>, <daniel@...ll.ch>, <swboyd@...omium.org>,
<dianders@...omium.org>, <andersson@...nel.org>,
<chenzhongjin@...wei.com>
Subject: [PATCH -next] 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.
Signed-off-by: Chen Zhongjin <chenzhongjin@...wei.com>
---
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
index 008e1420e6e5..79e81f1443be 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
@@ -902,13 +902,9 @@ static void dpu_kms_mdp_snapshot(struct msm_disp_state *disp_state, struct msm_k
int 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 */
--
2.33.0
Powered by blists - more mailing lists