OSDN Git Service

drm/amdgpu: Remove the unneeded result variable 'r'
authorye xingchen <ye.xingchen@zte.com.cn>
Tue, 30 Aug 2022 08:32:43 +0000 (08:32 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Aug 2022 20:37:31 +0000 (16:37 -0400)
commit91a95887891f1ab791171f32de99e9d9ed34c888
tree3915fee221fa0f64c8af42561deec4a7c1aea513
parente7c69a27cb94a86c3ab467fd297918494605859e
drm/amdgpu: Remove the unneeded result variable 'r'

Return the value sdma_v4_0_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>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c