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>
这个提交包含在:
@@ -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) {
|
||||
|
在新工单中引用
屏蔽一个用户