diff options
author | Minghao Chi <chi.minghao@zte.com.cn> | 2022-04-29 08:48:41 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-05-04 16:53:18 +0300 |
commit | 3453677aead7f0ced1561a76a832dc90deb014c3 (patch) | |
tree | e4df16a6b996f6e98819e88273c9cf18f91e4ef7 /drivers/gpu/drm/amd/amdgpu/iceland_ih.c | |
parent | 2929a6bfa14f8a83d9257fd2ccca2f58cbfdb9af (diff) | |
download | linux-3453677aead7f0ced1561a76a832dc90deb014c3.tar.xz |
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.c | 7 |
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) |