From: Tom St Denis Date: Fri, 1 Sep 2017 13:55:04 +0000 (-0400) Subject: drm/amd/amdgpu: Cleanup gmc_v9_0_suspend() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f053cd478ecfe9cbc9988912fe63a6d723838b2e;p=openwrt%2Fstaging%2Fblogic.git drm/amd/amdgpu: Cleanup gmc_v9_0_suspend() Even though fini returns 0 always it could theoretically fail in the future. Might as well return it instead of 0. Signed-off-by: Tom St Denis Reviewed-by: Alex Deucher Reviewed-by: Christian König 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 0766dad1fafe..7ca9cbec3004 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c @@ -795,9 +795,7 @@ static int gmc_v9_0_suspend(void *handle) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; - gmc_v9_0_hw_fini(adev); - - return 0; + return gmc_v9_0_hw_fini(adev); } static int gmc_v9_0_resume(void *handle)