From: ye xingchen Date: Fri, 26 Aug 2022 07:23:57 +0000 (+0000) Subject: drm/amdgpu: Remove the unneeded result variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1d5d1947778cbbc9b469e57b9e1a56871250afa9;p=linux.git 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 Signed-off-by: ye xingchen Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c index 83c6ccaaa9e4e..95689ef4be102 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)