diff options
author | Minghao Chi <chi.minghao@zte.com.cn> | 2022-05-05 02:22:39 +0000 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-05-05 16:50:22 -0400 |
commit | 38c1c73670bc5641208a6ab8c55ef2286f56f3a7 (patch) | |
tree | daf64776345285ec4d0c58ce953ee5b75745269e /drivers/gpu/drm/amd/amdgpu/vega10_ih.c | |
parent | 3f92a7d8282334f50b35e4b6ade562157981fdf1 (diff) | |
download | linux-38c1c73670bc5641208a6ab8c55ef2286f56f3a7.tar.bz2 |
drm/amdgpu: simplify the return expression of vega10_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/vega10_ih.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vega10_ih.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c index 3070466f54e1..cdd599a08125 100644 --- a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c @@ -521,14 +521,9 @@ static int vega10_ih_sw_fini(void *handle) static int vega10_ih_hw_init(void *handle) { - int r; struct amdgpu_device *adev = (struct amdgpu_device *)handle; - r = vega10_ih_irq_init(adev); - if (r) - return r; - - return 0; + return vega10_ih_irq_init(adev); } static int vega10_ih_hw_fini(void *handle) |