Commit c24a3c05 authored by Liu Shixin's avatar Liu Shixin Committed by Alex Deucher
Browse files

drm/amdgpu/gmc9: simplify the return expression of gmc_v9_0_suspend



Simplify the return expression.

Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4a78f15f
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -1683,14 +1683,9 @@ static int gmc_v9_0_hw_fini(void *handle)

static int gmc_v9_0_suspend(void *handle)
{
	int r;
	struct amdgpu_device *adev = (struct amdgpu_device *)handle;

	r = gmc_v9_0_hw_fini(adev);
	if (r)
		return r;

	return 0;
	return gmc_v9_0_hw_fini(adev);
}

static int gmc_v9_0_resume(void *handle)