amdgpu/vce3: Simplify vce_v3_0_process_interrupt()

Fold two cases into one for a LOC reduction.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
Tom St Denis 2015-12-15 10:42:39 -05:00 committed by Alex Deucher
parent af18b0f7fb
commit 81da2edef9
1 changed files with 1 additions and 3 deletions

View File

@ -663,10 +663,8 @@ static int vce_v3_0_process_interrupt(struct amdgpu_device *adev,
switch (entry->src_data) { switch (entry->src_data) {
case 0: case 0:
amdgpu_fence_process(&adev->vce.ring[0]);
break;
case 1: case 1:
amdgpu_fence_process(&adev->vce.ring[1]); amdgpu_fence_process(&adev->vce.ring[entry->src_data]);
break; break;
default: default:
DRM_ERROR("Unhandled interrupt: %d %d\n", DRM_ERROR("Unhandled interrupt: %d %d\n",