[PATCH libdrm] amdgpu: Use the canonical form in branch predicate
Edward O'Callaghan
funfunctor at folklore1984.net
Sat Apr 22 06:47:40 UTC 2017
Suggested-by: Emil Velikov <emil.l.velikov at gmail.com>
Signed-off-by: Edward O'Callaghan <funfunctor at folklore1984.net>
---
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);
--
2.9.3
More information about the amd-gfx
mailing list