drm/ttm: remove NULL checks when calling ttm_tt_destroy

The function is a no-op with a NULL pointer.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
这个提交包含在:
Christian König
2016-06-06 10:17:51 +02:00
提交者 Alex Deucher
父节点 089f16c55b
当前提交 4279cb1423
修改 3 个文件,包含 7 行新增11 行删除

查看文件

@@ -168,7 +168,7 @@ void ttm_tt_destroy(struct ttm_tt *ttm)
{
int ret;
if (unlikely(ttm == NULL))
if (ttm == NULL)
return;
if (ttm->state == tt_bound) {