[PATCH libdrm] amdgpu: Use the canonical form in branch predicate

Nicolai Hähnle nhaehnle at gmail.com
Mon Apr 24 12:36:33 UTC 2017


On 22.04.2017 08:47, Edward O'Callaghan wrote:
> Suggested-by: Emil Velikov <emil.l.velikov at gmail.com>
> Signed-off-by: Edward O'Callaghan <funfunctor at folklore1984.net>

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

> ---
>  amdgpu/amdgpu_cs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/amdgpu/amdgpu_cs.c b/amdgpu/amdgpu_cs.c
> index 0993a6d..868eb7b 100644
> --- a/amdgpu/amdgpu_cs.c
> +++ b/amdgpu/amdgpu_cs.c
> @@ -559,7 +559,7 @@ int amdgpu_cs_wait_semaphore(amdgpu_context_handle ctx,
>  	if (ring >= AMDGPU_CS_MAX_RINGS)
>  		return -EINVAL;
>  	/* must signal first */
> -	if (NULL == sem->signal_fence.context)
> +	if (!sem->signal_fence.context)
>  		return -EINVAL;
>
>  	pthread_mutex_lock(&ctx->sequence_mutex);
>


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the amd-gfx mailing list