]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu/gmc9: simplify the return expression of gmc_v9_0_suspend
authorLiu Shixin <liushixin2@huawei.com>
Mon, 21 Sep 2020 08:24:29 +0000 (16:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Sep 2020 21:37:37 +0000 (17:37 -0400)
Simplify the return expression.

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

index 5400cac020876c5b83c68e5fd73d3b8016b0751b..cb9e9e5afa5a1bbd21ed81f3c535a30c075c8ccf 100644 (file)
@@ -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)