diff options
author | ye xingchen <ye.xingchen@zte.com.cn> | 2022-08-26 09:23:57 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-08-29 23:43:59 +0200 |
commit | 1d5d1947778cbbc9b469e57b9e1a56871250afa9 (patch) | |
tree | 8039550d5ac681c240936c104d61f770ba7b89ae /drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | |
parent | drm/amdgpu: Update mes_v11_api_def.h (diff) | |
download | linux-1d5d1947778cbbc9b469e57b9e1a56871250afa9.tar.xz linux-1d5d1947778cbbc9b469e57b9e1a56871250afa9.zip |
drm/amdgpu: Remove the unneeded result variable
Return the value sdma_v5_2_start() directly instead of storing it in
another redundant variable.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c index 83c6ccaaa9e4..95689ef4be10 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c @@ -1413,12 +1413,9 @@ static int sdma_v5_2_sw_fini(void *handle) static int sdma_v5_2_hw_init(void *handle) { - int r; struct amdgpu_device *adev = (struct amdgpu_device *)handle; - r = sdma_v5_2_start(adev); - - return r; + return sdma_v5_2_start(adev); } static int sdma_v5_2_hw_fini(void *handle) |