From: Tom St Denis Date: Tue, 15 Dec 2015 15:42:39 +0000 (-0500) Subject: amdgpu/vce3: Simplify vce_v3_0_process_interrupt() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=81da2edef935adc6091deb20963c29d8463f1440;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git amdgpu/vce3: Simplify vce_v3_0_process_interrupt() Fold two cases into one for a LOC reduction. Signed-off-by: Tom St Denis Reviewed-by: Christian König --- diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c index d50db761e327..d3e7ba60d99c 100644 --- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c @@ -663,10 +663,8 @@ static int vce_v3_0_process_interrupt(struct amdgpu_device *adev, switch (entry->src_data) { case 0: - amdgpu_fence_process(&adev->vce.ring[0]); - break; case 1: - amdgpu_fence_process(&adev->vce.ring[1]); + amdgpu_fence_process(&adev->vce.ring[entry->src_data]); break; default: DRM_ERROR("Unhandled interrupt: %d %d\n",