[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220429054841.3851915-1-chi.minghao@zte.com.cn>
Date: Fri, 29 Apr 2022 05:48:41 +0000
From: cgel.zte@...il.com
To: alexander.deucher@....com
Cc: christian.koenig@....com, Xinhui.Pan@....com, airlied@...ux.ie,
amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org, Minghao Chi <chi.minghao@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH] drm/amdgpu: simplify the return expression of iceland_ih_hw_init
From: Minghao Chi <chi.minghao@....com.cn>
Simplify the return expression.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: Minghao Chi <chi.minghao@....com.cn>
---
drivers/gpu/drm/amd/amdgpu/iceland_ih.c | 7 +------
1 file changed, 1 insertion(+), 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)
--
2.25.1
Powered by blists - more mailing lists