Commit 395a73f8 authored by Dave Airlie's avatar Dave Airlie
Browse files

drm/ttm: tt destroy move null check to outer function.

parent 2ff6e69c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1613,6 +1613,8 @@ EXPORT_SYMBOL(ttm_bo_swapout_all);

void ttm_bo_tt_destroy(struct ttm_buffer_object *bo)
{
	if (bo->ttm == NULL)
		return;
	ttm_tt_destroy(bo->bdev, bo->ttm);
	bo->ttm = NULL;
}
+1 −0
Original line number Diff line number Diff line
@@ -696,3 +696,4 @@ int ttm_bo_pipeline_gutting(struct ttm_buffer_object *bo)

	return 0;
}
+0 −3
Original line number Diff line number Diff line
@@ -209,9 +209,6 @@ EXPORT_SYMBOL(ttm_tt_set_placement_caching);

void ttm_tt_destroy(struct ttm_bo_device *bdev, struct ttm_tt *ttm)
{
	if (ttm == NULL)
		return;

	ttm_tt_unbind(bdev, ttm);

	ttm_tt_unpopulate(bdev, ttm);