> -----Original Message-----
> From: amd-gfx [mailto:[email protected]] On Behalf
> Of Monk Liu
> Sent: Tuesday, February 07, 2017 1:11 AM
> To: [email protected]
> Cc: Liu, Monk
> Subject: [PATCH 07/20] drm/amdgpu:minor cleanup
> 
> Change-Id: Ia5ada3e9990261ca70b03655424e6290701cdb9d
> Signed-off-by: Monk Liu <[email protected]>

Reviewed-by: Alex Deucher <[email protected]>

> ---
>  drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 5 +----
>  1 file changed, 1 insertion(+), 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 fd29124..4029d32 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> @@ -4864,10 +4864,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;
> --
> 2.7.4
> 
> _______________________________________________
> amd-gfx mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to