aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/iceland_ih.c
diff options
context:
space:
mode:
authorMinghao Chi <chi.minghao@zte.com.cn>2022-04-29 05:48:41 +0000
committerAlex Deucher <alexander.deucher@amd.com>2022-05-04 09:53:18 -0400
commit3453677aead7f0ced1561a76a832dc90deb014c3 (patch)
treee4df16a6b996f6e98819e88273c9cf18f91e4ef7 /drivers/gpu/drm/amd/amdgpu/iceland_ih.c
parentdrm/amdgpu/discovery: add IH v6 (diff)
downloadlinux-dev-3453677aead7f0ced1561a76a832dc90deb014c3.tar.xz
linux-dev-3453677aead7f0ced1561a76a832dc90deb014c3.zip
drm/amdgpu: simplify the return expression of iceland_ih_hw_init
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/iceland_ih.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/iceland_ih.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/iceland_ih.c b/drivers/gpu/drm/amd/amdgpu/iceland_ih.c
index ddfe4eaeea05..aecad530b10a 100644
--- a/drivers/gpu/drm/amd/amdgpu/iceland_ih.c
+++ b/drivers/gpu/drm/amd/amdgpu/iceland_ih.c
@@ -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)