Commit 1ce76644 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Greg Kroah-Hartman

drm: msm: remove unused variable

commit 6979cd54 upstream.

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: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: 4016260b ("drm/msm: fix bug after preclose removal")
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9b09e967
...@@ -465,7 +465,6 @@ static void msm_preclose(struct drm_device *dev, struct drm_file *file) ...@@ -465,7 +465,6 @@ static void msm_preclose(struct drm_device *dev, struct drm_file *file)
{ {
struct msm_drm_private *priv = dev->dev_private; struct msm_drm_private *priv = dev->dev_private;
struct msm_file_private *ctx = file->driver_priv; struct msm_file_private *ctx = file->driver_priv;
struct msm_kms *kms = priv->kms;
mutex_lock(&dev->struct_mutex); mutex_lock(&dev->struct_mutex);
if (ctx == priv->lastctx) if (ctx == priv->lastctx)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment