[PATCH 1/2] drm: rip out dev->last_checked

Daniel Vetter daniel.vetter at ffwll.ch
Wed Jul 10 08:51:10 PDT 2013


Only ever re-cleared in drm_setup, otherwise completely unused.

Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 drivers/gpu/drm/drm_fops.c | 1 -
 include/drm/drmP.h         | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c
index d1b4771..5679971 100644
--- a/drivers/gpu/drm/drm_fops.c
+++ b/drivers/gpu/drm/drm_fops.c
@@ -72,7 +72,6 @@ static int drm_setup(struct drm_device * dev)
 
 	dev->context_flag = 0;
 	dev->last_context = 0;
-	dev->last_checked = 0;
 	dev->if_version = 0;
 
 	DRM_DEBUG("\n");
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index d0043b8..374c2f1 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1112,7 +1112,6 @@ struct drm_device {
 	/*@{ */
 	int irq_enabled;		/**< True if irq handler is enabled */
 	__volatile__ long context_flag;	/**< Context swapping flag */
-	int last_checked;		/**< Last context checked for DMA */
 	int last_context;		/**< Last current context */
 	/*@} */
 
-- 
1.8.3.2



More information about the dri-devel mailing list