提交 2da4da3c 编写于 作者: M Monk Liu 提交者: Alex Deucher

drm/amdgpu:minor cleanup

Signed-off-by: NMonk Liu <Monk.Liu@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 bffa2280
......@@ -4872,10 +4872,7 @@ static int gfx_v8_0_kiq_init_queue(struct amdgpu_ring *ring,
struct amdgpu_device *adev = ring->adev;
struct amdgpu_kiq *kiq = &adev->gfx.kiq;
uint64_t eop_gpu_addr;
bool is_kiq = false;
if (ring->funcs->type == AMDGPU_RING_TYPE_KIQ)
is_kiq = true;
bool is_kiq = (ring->funcs->type == AMDGPU_RING_TYPE_KIQ);
if (is_kiq) {
eop_gpu_addr = kiq->eop_gpu_addr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册