From: Monk Liu Date: Mon, 6 Feb 2017 08:35:54 +0000 (+0800) Subject: drm/amdgpu:minor cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2da4da3cbe78ee6555b3999494b0f080d17f93b1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amdgpu:minor cleanup Signed-off-by: Monk Liu Signed-off-by: Alex Deucher --- 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, 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;