Skip to content

Commit 84d46e1

Browse files
Yang Lilumag
authored andcommitted
drm/msm: remove variable set but not used
The code that uses variable mdss has been removed, So the declaration and assignment of the variable can be removed. Eliminate the following clang warning: drivers/gpu/drm/msm/msm_drv.c:513:19: warning: variable 'mdss' set but not used [-Wunused-but-set-variable] Reported-by: Abaci Robot <[email protected]> Fixes: 2027e5b ("drm/msm: Initialize MDSS irq domain at probe time") Signed-off-by: Yang Li <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 6ed9528 commit 84d46e1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpu/drm/msm/msm_drv.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,6 @@ static int msm_drm_init(struct device *dev, const struct drm_driver *drv)
510510
struct msm_drm_private *priv = dev_get_drvdata(dev);
511511
struct drm_device *ddev;
512512
struct msm_kms *kms;
513-
struct msm_mdss *mdss;
514513
int ret, i;
515514

516515
ddev = drm_dev_alloc(drv, dev);
@@ -521,8 +520,6 @@ static int msm_drm_init(struct device *dev, const struct drm_driver *drv)
521520
ddev->dev_private = priv;
522521
priv->dev = ddev;
523522

524-
mdss = priv->mdss;
525-
526523
priv->wq = alloc_ordered_workqueue("msm", 0);
527524
priv->hangcheck_period = DRM_MSM_HANGCHECK_DEFAULT_PERIOD;
528525

0 commit comments

Comments
 (0)