Mesa (master): omx: use list_is_linked
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Dec 18 02:04:48 UTC 2020
Module: Mesa
Branch: master
Commit: a9bcb10ec4f5d41b95e9d39243fdcce66232b6ae
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a9bcb10ec4f5d41b95e9d39243fdcce66232b6ae
Author: Marcin Ślusarz <marcin.slusarz at intel.com>
Date: Tue Dec 15 16:00:16 2020 +0100
omx: use list_is_linked
Signed-off-by: Marcin Ślusarz <marcin.slusarz at intel.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8110>
---
src/gallium/frontends/omx/vid_enc_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/frontends/omx/vid_enc_common.c b/src/gallium/frontends/omx/vid_enc_common.c
index a3b274606cf..9d64f4358cd 100644
--- a/src/gallium/frontends/omx/vid_enc_common.c
+++ b/src/gallium/frontends/omx/vid_enc_common.c
@@ -34,7 +34,7 @@ void enc_ReleaseTasks(struct list_head *head)
{
struct encode_task *i, *next;
- if (!head || !head->next)
+ if (!head || !list_is_linked(head))
return;
LIST_FOR_EACH_ENTRY_SAFE(i, next, head, list) {
More information about the mesa-commit
mailing list