]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/amdgpu: simplify the return expression of vega10_ih_hw_init()
authorMinghao Chi <chi.minghao@zte.com.cn>
Thu, 5 May 2022 02:22:39 +0000 (02:22 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2022 20:50:22 +0000 (16:50 -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/vega10_ih.c

index 3070466f54e170de07b519b4d7663a95d9cccae3..cdd599a081258c304d880f1fc6d9ffd7294d8bc5 100644 (file)
@@ -521,14 +521,9 @@ static int vega10_ih_sw_fini(void *handle)
 
 static int vega10_ih_hw_init(void *handle)
 {
-       int r;
        struct amdgpu_device *adev = (struct amdgpu_device *)handle;
 
-       r = vega10_ih_irq_init(adev);
-       if (r)
-               return r;
-
-       return 0;
+       return vega10_ih_irq_init(adev);
 }
 
 static int vega10_ih_hw_fini(void *handle)