Commit 2da4da3c authored by Monk Liu's avatar Monk Liu Committed by Alex Deucher

drm/amdgpu:minor cleanup

Signed-off-by: default avatarMonk Liu <Monk.Liu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent bffa2280
...@@ -4872,10 +4872,7 @@ static int gfx_v8_0_kiq_init_queue(struct amdgpu_ring *ring, ...@@ -4872,10 +4872,7 @@ static int gfx_v8_0_kiq_init_queue(struct amdgpu_ring *ring,
struct amdgpu_device *adev = ring->adev; struct amdgpu_device *adev = ring->adev;
struct amdgpu_kiq *kiq = &adev->gfx.kiq; struct amdgpu_kiq *kiq = &adev->gfx.kiq;
uint64_t eop_gpu_addr; uint64_t eop_gpu_addr;
bool is_kiq = false; bool is_kiq = (ring->funcs->type == AMDGPU_RING_TYPE_KIQ);
if (ring->funcs->type == AMDGPU_RING_TYPE_KIQ)
is_kiq = true;
if (is_kiq) { if (is_kiq) {
eop_gpu_addr = kiq->eop_gpu_addr; eop_gpu_addr = kiq->eop_gpu_addr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment