diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-12-14 13:39:53 -0800 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 11:46:17 -0500 |
commit | 80166e95679742588bd6c17ede46fa46867739f7 (patch) | |
tree | cfd82f67b531e03f86fe725dabc9a3b37fd2ad5d /drivers/gpu/drm | |
parent | 40fb5ed290d49b568d8547ecfdc5bd83f217dfe1 (diff) |
drm/xe/bo: Remove unusued variable
bo is not used since all the checks are against tbo. Fix warning:
../drivers/gpu/drm/xe/xe_bo.c: In function ‘xe_evict_flags’:
../drivers/gpu/drm/xe/xe_bo.c:250:23: error: variable ‘bo’ set but not used [-Werror=unused-but-set-variable]
250 | struct xe_bo *bo;
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/xe/xe_bo.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c index 7c0037aecff3..8e4a3b1f6b93 100644 --- a/drivers/gpu/drm/xe/xe_bo.c +++ b/drivers/gpu/drm/xe/xe_bo.c @@ -247,8 +247,6 @@ int xe_bo_placement_for_flags(struct xe_device *xe, struct xe_bo *bo, static void xe_evict_flags(struct ttm_buffer_object *tbo, struct ttm_placement *placement) { - struct xe_bo *bo; - if (!xe_bo_is_xe_bo(tbo)) { /* Don't handle scatter gather BOs */ if (tbo->type == ttm_bo_type_sg) { @@ -265,8 +263,6 @@ static void xe_evict_flags(struct ttm_buffer_object *tbo, * For xe, sg bos that are evicted to system just triggers a * rebind of the sg list upon subsequent validation to XE_PL_TT. */ - - bo = ttm_to_xe_bo(tbo); switch (tbo->resource->mem_type) { case XE_PL_VRAM0: case XE_PL_VRAM1: |