amdgpu: Use the canonical form in branch predicate
PATCH 1/1 amdgpu: Use the canonical form in branch predicate
Suggested-by Emil Velikov <[email protected]>
Signed-off-by Edward O'Callaghan <[email protected]>
--- amdgpu/amdgpu_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
amdgpu/amdgpu_cs.c +1 -1
@@ -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);
Signature · 6 lines
2.9.3 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20170422064740.2491-1-funfunctor-dczkZgxz+BNUPWh3PAxdjQ@public.gmane.org
Emil Velikov
Reviewed-byQuoted 2 lines · Edward O'Callaghan
Suggested-by Emil Velikov <[email protected]>Signed-off-by Edward O'Callaghan <[email protected]>
Reviewed-by Emil Velikov <[email protected]>
Thanks
Emil
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Nicolai Hähnle
Reviewed-byQuoted 2 lines · Edward O'Callaghan
Suggested-by Emil Velikov <[email protected]>Signed-off-by Edward O'Callaghan <[email protected]>
Reviewed-by Nicolai Hähnle <[email protected]>
Quoted 18 lines
--- amdgpu/amdgpu_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)amdgpu/amdgpu_cs.c +1
-1@@ -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);
Signature · 6 lines
Lerne, wie die Welt wirklich ist, Aber vergiss niemals, wie sie sein sollte. _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx