Commit 38c1c736 authored by Minghao Chi's avatar Minghao Chi Committed by Alex Deucher
Browse files

drm/amdgpu: simplify the return expression of vega10_ih_hw_init()



Simplify the return expression.

Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarMinghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3f92a7d8
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -521,14 +521,9 @@ static int vega10_ih_sw_fini(void *handle)

static int vega10_ih_hw_init(void *handle)
{
	int r;
	struct amdgpu_device *adev = (struct amdgpu_device *)handle;

	r = vega10_ih_irq_init(adev);
	if (r)
		return r;

	return 0;
	return vega10_ih_irq_init(adev);
}

static int vega10_ih_hw_fini(void *handle)