amdgpu/vce3: Simplify vce_v3_0_process_interrupt()
authorTom St Denis <tom.stdenis@amd.com>
Tue, 15 Dec 2015 15:42:39 +0000 (10:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Jan 2016 22:20:33 +0000 (17:20 -0500)
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>
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c

index d50db761e327de02c39c1e6b80acf10cfd5e98a8..d3e7ba60d99c293f36cf62af3eef345030b948cf 100644 (file)
@@ -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",