From 00aa2c18810efb896afd9ff0acbadd4aa9540fe6 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Sat, 22 Apr 2017 16:47:40 +1000 Subject: [PATCH] amdgpu: Use the canonical form in branch predicate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Suggested-by: Emil Velikov Signed-off-by: Edward O'Callaghan Reviewed-by: Emil Velikov Reviewed-by: Nicolai Hähnle --- 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 0993a6d8..868eb7b0 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);