Commit de6ee704 authored by YueHaibing's avatar YueHaibing Committed by Alex Deucher

drm/ttm: remove set but not used variable 'bdev'

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:191:24: warning:
 variable 'bdev' set but not used [-Wunused-but-set-variable]

It's not used any more and can be removed.
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 0cd57eec
...@@ -188,13 +188,11 @@ void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, ...@@ -188,13 +188,11 @@ void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket,
struct ttm_validate_buffer *entry; struct ttm_validate_buffer *entry;
struct ttm_buffer_object *bo; struct ttm_buffer_object *bo;
struct ttm_bo_global *glob; struct ttm_bo_global *glob;
struct ttm_bo_device *bdev;
if (list_empty(list)) if (list_empty(list))
return; return;
bo = list_first_entry(list, struct ttm_validate_buffer, head)->bo; bo = list_first_entry(list, struct ttm_validate_buffer, head)->bo;
bdev = bo->bdev;
glob = bo->bdev->glob; glob = bo->bdev->glob;
spin_lock(&glob->lru_lock); spin_lock(&glob->lru_lock);
......
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