[PATCH] drm/ttm: Remove unnecessary drm_mm_clean
Christian König
christian.koenig at amd.com
Wed Oct 12 12:56:22 UTC 2022
Am 12.10.22 um 14:47 schrieb Zeng Heng:
> 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 at huawei.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
Can you push it to drm-misc-next or should I do that?
Thanks,
Christian.
> ---
> drivers/gpu/drm/ttm/ttm_range_manager.c | 1 -
> 1 file changed, 1 deletion(-)
>
> 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);
>
More information about the dri-devel
mailing list