diff options
author | Minghao Chi <chi.minghao@zte.com.cn> | 2022-04-29 05:50:37 +0000 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-05-04 09:53:28 -0400 |
commit | 364d453f4d8ed5914ec34d7a193ceac49cc27b37 (patch) | |
tree | a6ca81867b5449a58ea306096fd655a2344b5282 /drivers/gpu/drm/amd/amdgpu/navi10_ih.c | |
parent | 3453677aead7f0ced1561a76a832dc90deb014c3 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/navi10_ih.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/navi10_ih.c | 7 |
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) |