Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aef1ba58 authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher
Browse files

drm/ttm: cleanup unuse ret value



The ret must be 0 here, otherwise, the function will return after init_mem_type.

Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b3124dfc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1394,7 +1394,7 @@ EXPORT_SYMBOL(ttm_bo_evict_mm);
int ttm_bo_init_mm(struct ttm_bo_device *bdev, unsigned type,
			unsigned long p_size)
{
	int ret = -EINVAL;
	int ret;
	struct ttm_mem_type_manager *man;
	unsigned i;

@@ -1412,7 +1412,6 @@ int ttm_bo_init_mm(struct ttm_bo_device *bdev, unsigned type,
		return ret;
	man->bdev = bdev;

	ret = 0;
	if (type != TTM_PL_SYSTEM) {
		ret = (*man->func->init)(man, p_size);
		if (ret)