diff options
author | Tom St Denis <tom.stdenis@amd.com> | 2015-12-15 10:42:39 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-01-04 17:20:33 -0500 |
commit | 81da2edef935adc6091deb20963c29d8463f1440 (patch) | |
tree | 23863b134b1fcd5dbc4d05a380ead53794489782 /drivers/gpu/drm/amd | |
parent | af18b0f7fb635e5b18d541bf05058723412d749f (diff) | |
download | op-kernel-dev-81da2edef935adc6091deb20963c29d8463f1440.zip op-kernel-dev-81da2edef935adc6091deb20963c29d8463f1440.tar.gz |
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>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c index d50db76..d3e7ba6 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", |