From: Liu Shixin Date: Mon, 21 Sep 2020 08:24:29 +0000 (+0800) Subject: drm/amdgpu/gmc9: simplify the return expression of gmc_v9_0_suspend X-Git-Tag: v5.15~2586^2~8^2~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c24a3c0505987bc1e26723a1f1aedc6452b2a281;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu/gmc9: simplify the return expression of gmc_v9_0_suspend Simplify the return expression. Signed-off-by: Liu Shixin Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index 5400cac..cb9e9e5 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c @@ -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)