drm: msm: remove unused variable
authorArnd Bergmann <arnd@arndb.de>
Sat, 16 Apr 2016 20:41:46 +0000 (22:41 +0200)
committerRob Clark <robdclark@gmail.com>
Sun, 8 May 2016 14:22:16 +0000 (10:22 -0400)
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>
drivers/gpu/drm/msm/msm_drv.c

index 745793991ba67fff2ce96edd18e950fe87b54de2..c257cdd346e752943d6c49b0ddaf02ed00f73654 100644 (file)
@@ -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)