diff mbox

drm/ttm: Fix unused variable warning

Message ID bf0f349e-adde-d20c-cfdc-ddf500c8df0d@amd.com (mailing list archive)
State New, archived
Headers show

Commit Message

Russell, Kent Feb. 3, 2017, 5:23 p.m. UTC
This cleans up a remnant from Christian's patch (drm/ttm: revert "add 
optional LRU removal callback v2")

  Kent
diff mbox

Patch

From dfdf89a8dff0e378db6fa9578f75b02eec02ca0e Mon Sep 17 00:00:00 2001
From: Kent Russell <kent.russell@amd.com>
Date: Tue, 31 Jan 2017 06:44:10 -0500
Subject: [PATCH] drm/ttm: Fix unused variable warning

Remove an unused variable in ttm_bo

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
---
 drivers/gpu/drm/ttm/ttm_bo.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index dfaeac4..bdb5812 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -230,7 +230,6 @@  EXPORT_SYMBOL(ttm_bo_del_sub_from_lru);
 
 void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo)
 {
-	struct ttm_bo_device *bdev = bo->bdev;
 	int put_count = 0;
 
 	lockdep_assert_held(&bo->resv->lock.base);
-- 
2.7.4