Commit 43c7c41b authored by Tom St Denis's avatar Tom St Denis Committed by Alex Deucher

drm/ttm: Fix coding style in ttm_bo.c

Correct indentation and {} brace style.
Signed-off-by: default avatarTom St Denis <tom.stdenis@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4584312d
...@@ -149,9 +149,8 @@ static void ttm_bo_release_list(struct kref *list_kref) ...@@ -149,9 +149,8 @@ static void ttm_bo_release_list(struct kref *list_kref)
mutex_destroy(&bo->wu_mutex); mutex_destroy(&bo->wu_mutex);
if (bo->destroy) if (bo->destroy)
bo->destroy(bo); bo->destroy(bo);
else { else
kfree(bo); kfree(bo);
}
ttm_mem_global_free(bdev->glob->mem_glob, acc_size); ttm_mem_global_free(bdev->glob->mem_glob, acc_size);
} }
...@@ -163,7 +162,6 @@ void ttm_bo_add_to_lru(struct ttm_buffer_object *bo) ...@@ -163,7 +162,6 @@ void ttm_bo_add_to_lru(struct ttm_buffer_object *bo)
reservation_object_assert_held(bo->resv); reservation_object_assert_held(bo->resv);
if (!(bo->mem.placement & TTM_PL_FLAG_NO_EVICT)) { if (!(bo->mem.placement & TTM_PL_FLAG_NO_EVICT)) {
BUG_ON(!list_empty(&bo->lru)); BUG_ON(!list_empty(&bo->lru));
man = &bdev->man[bo->mem.mem_type]; man = &bdev->man[bo->mem.mem_type];
...@@ -614,10 +612,9 @@ static void ttm_bo_delayed_workqueue(struct work_struct *work) ...@@ -614,10 +612,9 @@ static void ttm_bo_delayed_workqueue(struct work_struct *work)
struct ttm_bo_device *bdev = struct ttm_bo_device *bdev =
container_of(work, struct ttm_bo_device, wq.work); container_of(work, struct ttm_bo_device, wq.work);
if (!ttm_bo_delayed_delete(bdev, false)) { if (!ttm_bo_delayed_delete(bdev, false))
schedule_delayed_work(&bdev->wq, schedule_delayed_work(&bdev->wq,
((HZ / 100) < 1) ? 1 : HZ / 100); ((HZ / 100) < 1) ? 1 : HZ / 100);
}
} }
static void ttm_bo_release(struct kref *kref) static void ttm_bo_release(struct kref *kref)
......
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