diff options
author | Monk Liu <Monk.Liu@amd.com> | 2017-02-06 03:35:54 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:52:44 -0400 |
commit | 2da4da3cbe78ee6555b3999494b0f080d17f93b1 (patch) | |
tree | 82e2e3c97febcb7cde4335aaf18bab0a5a32b7d2 /drivers/gpu/drm/amd/amdgpu | |
parent | bffa2280bac6a76234f36e7d1459c474886c2244 (diff) |
drm/amdgpu:minor cleanup
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index 41c4954ac85b..0dfc7659cfe7 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | |||
@@ -4872,10 +4872,7 @@ static int gfx_v8_0_kiq_init_queue(struct amdgpu_ring *ring, | |||
4872 | struct amdgpu_device *adev = ring->adev; | 4872 | struct amdgpu_device *adev = ring->adev; |
4873 | struct amdgpu_kiq *kiq = &adev->gfx.kiq; | 4873 | struct amdgpu_kiq *kiq = &adev->gfx.kiq; |
4874 | uint64_t eop_gpu_addr; | 4874 | uint64_t eop_gpu_addr; |
4875 | bool is_kiq = false; | 4875 | bool is_kiq = (ring->funcs->type == AMDGPU_RING_TYPE_KIQ); |
4876 | |||
4877 | if (ring->funcs->type == AMDGPU_RING_TYPE_KIQ) | ||
4878 | is_kiq = true; | ||
4879 | 4876 | ||
4880 | if (is_kiq) { | 4877 | if (is_kiq) { |
4881 | eop_gpu_addr = kiq->eop_gpu_addr; | 4878 | eop_gpu_addr = kiq->eop_gpu_addr; |