提交 79c0d7dd 编写于 作者: Z zhang songyi 提交者: Alex Deucher

drm/amdgpu: Remove the unneeded result variable

Return the sdma_v6_0_start() directly instead of storing it in another
redundant variable.
Reported-by: NZeal Robot <zealci@zte.com.cn>
Signed-off-by: Nzhang songyi <zhang.songyi@zte.com.cn>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 d4242216
......@@ -1377,12 +1377,9 @@ static int sdma_v6_0_sw_fini(void *handle)
static int sdma_v6_0_hw_init(void *handle)
{
int r;
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
r = sdma_v6_0_start(adev);
return r;
return sdma_v6_0_start(adev);
}
static int sdma_v6_0_hw_fini(void *handle)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册