]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: simplify the return expression of iceland_ih_hw_init
authorMinghao Chi <chi.minghao@zte.com.cn>
Fri, 29 Apr 2022 05:48:41 +0000 (05:48 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 13:53:18 +0000 (09:53 -0400)
Simplify the return expression.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/iceland_ih.c

index ddfe4eaeea05ec40b0045867c52302590be11038..aecad530b10a61289f9e2413612bbf58a33cec22 100644 (file)
@@ -308,14 +308,9 @@ static int iceland_ih_sw_fini(void *handle)
 
 static int iceland_ih_hw_init(void *handle)
 {
-       int r;
        struct amdgpu_device *adev = (struct amdgpu_device *)handle;
 
-       r = iceland_ih_irq_init(adev);
-       if (r)
-               return r;
-
-       return 0;
+       return iceland_ih_irq_init(adev);
 }
 
 static int iceland_ih_hw_fini(void *handle)