Commit 1d5d1947 authored by ye xingchen's avatar ye xingchen Committed by Alex Deucher
Browse files

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: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2aefa9a3
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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)