drm/ttm: Remove unnecessary drm_mm_clean
authorZeng Heng <zengheng4@huawei.com>
Wed, 12 Oct 2022 12:47:35 +0000 (20:47 +0800)
committerChristian König <christian.koenig@amd.com>
Sun, 16 Oct 2022 18:12:25 +0000 (20:12 +0200)
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>
drivers/gpu/drm/ttm/ttm_range_manager.c

index 4cfef2b3514dee58fc13b8ab1af67eed2b854701..f7c16c46cfbc76f931e1e8f09e94f7b198713552 100644 (file)
@@ -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);