drm/amdgpu/gmc9: simplify the return expression of gmc_v9_0_suspend
Subsystems (2)
PATCH 1/1 drm/amdgpu/gmc9: simplify the return expression of gmc_v9_0_suspend
Simplify the return expression.
Signed-off-by Liu Shixin <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1 -6
@@ -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)
Signature · 1 line
2.25.1
Alex Deucher
AppliedApplied. Thanks!
Alex
Quoted 35 lines · Liu Shixin
Simplify the return expression.
Signed-off-by Liu Shixin <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1
-7@@ -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) --2.25.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx