aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinghao Chi <chi.minghao@zte.com.cn>2022-04-29 05:50:37 +0000
committerAlex Deucher <alexander.deucher@amd.com>2022-05-04 09:53:28 -0400
commit364d453f4d8ed5914ec34d7a193ceac49cc27b37 (patch)
treea6ca81867b5449a58ea306096fd655a2344b5282
parentdrm/amdgpu: simplify the return expression of iceland_ih_hw_init (diff)
downloadlinux-dev-364d453f4d8ed5914ec34d7a193ceac49cc27b37.tar.xz
linux-dev-364d453f4d8ed5914ec34d7a193ceac49cc27b37.zip
drm/amdgpu: simplify the return expression of navi10_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>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/navi10_ih.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/navi10_ih.c b/drivers/gpu/drm/amd/amdgpu/navi10_ih.c
index 97201ab0965e..4b5396d3e60f 100644
--- a/drivers/gpu/drm/amd/amdgpu/navi10_ih.c
+++ b/drivers/gpu/drm/amd/amdgpu/navi10_ih.c
@@ -593,14 +593,9 @@ static int navi10_ih_sw_fini(void *handle)
static int navi10_ih_hw_init(void *handle)
{
- int r;
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
- r = navi10_ih_irq_init(adev);
- if (r)
- return r;
-
- return 0;
+ return navi10_ih_irq_init(adev);
}
static int navi10_ih_hw_fini(void *handle)