summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-04-16 22:41:46 +0200
committerRob Clark <robdclark@gmail.com>2016-05-08 10:22:16 -0400
commit6979cd54c0667189bb0805c0fcebfef8afc5a191 (patch)
treeeb068229de661eefaf1bc21f9088e168cdfaf99f /drivers/gpu/drm/msm
parent2755734390c18ca33d9755c9caa2685567563c19 (diff)
downloadblackbird-op-linux-6979cd54c0667189bb0805c0fcebfef8afc5a191.tar.gz
blackbird-op-linux-6979cd54c0667189bb0805c0fcebfef8afc5a191.zip
drm: msm: remove unused variable
A recent cleanup removed the only user of the 'kms' variable in msm_preclose(), causing a harmless compiler warning: drivers/gpu/drm/msm/msm_drv.c: In function 'msm_preclose': drivers/gpu/drm/msm/msm_drv.c:468:18: error: unused variable 'kms' [-Werror=unused-variable] This removes the variable as well. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 4016260ba47a ("drm/msm: fix bug after preclose removal") Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm')
-rw-r--r--drivers/gpu/drm/msm/msm_drv.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
index 745793991ba6..c257cdd346e7 100644
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@ -469,7 +469,6 @@ static void msm_preclose(struct drm_device *dev, struct drm_file *file)
{
struct msm_drm_private *priv = dev->dev_private;
struct msm_file_private *ctx = file->driver_priv;
- struct msm_kms *kms = priv->kms;
mutex_lock(&dev->struct_mutex);
if (ctx == priv->lastctx)
OpenPOWER on IntegriCloud