[lkml]   [2016]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] drm/tegra: remove unused variable
A newly merged patch removed the only user of this variable,
leading to a harmless gcc warning:

drivers/gpu/drm/tegra/drm.c: In function 'tegra_drm_preclose':
drivers/gpu/drm/tegra/drm.c:861:19: error: unused variable 'crtc' [-Werror=unused-variable]

This removes the variable as well.

Cc: Terje Bergström <>
Cc: Daniel Stone <>
Cc: Alex Deucher <>
Cc: Thierry Reding <>
Cc: Daniel Vetter <>
Fixes: 0417d424ac0d ("drm/tegra: Stop cancelling page flip events")
Signed-off-by: Arnd Bergmann <>
drivers/gpu/drm/tegra/drm.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c
index 021d0e1398fb..8e6b18caa706 100644
--- a/drivers/gpu/drm/tegra/drm.c
+++ b/drivers/gpu/drm/tegra/drm.c
@@ -858,7 +858,6 @@ static void tegra_drm_preclose(struct drm_device *drm, struct drm_file *file)
struct tegra_drm_file *fpriv = file->driver_priv;
struct tegra_drm_context *context, *tmp;
- struct drm_crtc *crtc;

list_for_each_entry_safe(context, tmp, &fpriv->contexts, list)
 \ /
  Last update: 2016-02-09 14:01    [W:0.048 / U:2.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site