Commit 364d453f authored by Minghao Chi's avatar Minghao Chi Committed by Alex Deucher

drm/amdgpu: simplify the return expression of navi10_ih_hw_init()

Simplify the return expression.
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarMinghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3453677a
...@@ -593,14 +593,9 @@ static int navi10_ih_sw_fini(void *handle) ...@@ -593,14 +593,9 @@ static int navi10_ih_sw_fini(void *handle)
static int navi10_ih_hw_init(void *handle) static int navi10_ih_hw_init(void *handle)
{ {
int r;
struct amdgpu_device *adev = (struct amdgpu_device *)handle; struct amdgpu_device *adev = (struct amdgpu_device *)handle;
r = navi10_ih_irq_init(adev); return navi10_ih_irq_init(adev);
if (r)
return r;
return 0;
} }
static int navi10_ih_hw_fini(void *handle) static int navi10_ih_hw_fini(void *handle)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment