summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorZeng Heng <zengheng4@huawei.com>2022-10-12 20:47:35 +0800
committerChristian König <christian.koenig@amd.com>2022-10-16 20:12:25 +0200
commitf8ced2abe6df374cd6bbe7bc642397d439315033 (patch)
tree6b29403f014f9a90beeeba00ab44eb0988e92b34 /drivers
parent530f789766996c9298c02ac8b59cee6934322c6b (diff)
downloadlinux-stable-f8ced2abe6df374cd6bbe7bc642397d439315033.tar.gz
linux-stable-f8ced2abe6df374cd6bbe7bc642397d439315033.tar.bz2
linux-stable-f8ced2abe6df374cd6bbe7bc642397d439315033.zip
drm/ttm: Remove unnecessary drm_mm_clean
Remove unnecessary `drm_mm_clean` calling in `ttm_range_man_fini_nocheck`, due to effective check is already included in the following `drm_mm_takedown`. Signed-off-by: Zeng Heng <zengheng4@huawei.com> Reviewed-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221012124735.1702700-1-zengheng4@huawei.com Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/ttm/ttm_range_manager.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_range_manager.c b/drivers/gpu/drm/ttm/ttm_range_manager.c
index 4cfef2b3514d..f7c16c46cfbc 100644
--- a/drivers/gpu/drm/ttm/ttm_range_manager.c
+++ b/drivers/gpu/drm/ttm/ttm_range_manager.c
@@ -229,7 +229,6 @@ int ttm_range_man_fini_nocheck(struct ttm_device *bdev,
return ret;
spin_lock(&rman->lock);
- drm_mm_clean(mm);
drm_mm_takedown(mm);
spin_unlock(&rman->lock);