aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-11-07 21:15:00 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-11-09 16:29:31 -0500
commitc10caceddca2236ada8359603767ba629e6f19ba (patch)
tree4246864d9b1fc0fc0b85d0c796ab96ff08d69bd6 /drivers/gpu/drm
parent106c7d6148e5aadd394e6701f7e498df49b869d1 (diff)
drm/ttm: remove set but not used variable 'driver'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/ttm/ttm_execbuf_util.c: In function 'ttm_eu_fence_buffer_objects': drivers/gpu/drm/ttm/ttm_execbuf_util.c:190:24: warning: variable 'driver' set but not used [-Wunused-but-set-variable] It not used any more after commit f2c24b83ae90 ("drm/ttm: flip the switch, and convert to dma_fence") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> Acked-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/ttm/ttm_execbuf_util.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_execbuf_util.c b/drivers/gpu/drm/ttm/ttm_execbuf_util.c
index e73ae0d22897..e086d6c6ddd9 100644
--- a/drivers/gpu/drm/ttm/ttm_execbuf_util.c
+++ b/drivers/gpu/drm/ttm/ttm_execbuf_util.c
@@ -187,14 +187,12 @@ void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket,
187 struct ttm_buffer_object *bo; 187 struct ttm_buffer_object *bo;
188 struct ttm_bo_global *glob; 188 struct ttm_bo_global *glob;
189 struct ttm_bo_device *bdev; 189 struct ttm_bo_device *bdev;
190 struct ttm_bo_driver *driver;
191 190
192 if (list_empty(list)) 191 if (list_empty(list))
193 return; 192 return;
194 193
195 bo = list_first_entry(list, struct ttm_validate_buffer, head)->bo; 194 bo = list_first_entry(list, struct ttm_validate_buffer, head)->bo;
196 bdev = bo->bdev; 195 bdev = bo->bdev;
197 driver = bdev->driver;
198 glob = bo->bdev->glob; 196 glob = bo->bdev->glob;
199 197
200 spin_lock(&glob->lru_lock); 198 spin_lock(&glob->lru_lock);