amdgpu: Use the canonical form in branch predicate

Suggested-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
main
Edward O'Callaghan 2017-04-22 16:47:40 +10:00 committed by Edward O'Callaghan
parent 2ee1fd2470
commit 00aa2c1881
1 changed files with 1 additions and 1 deletions

View File

@ -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);