Commit a9bcb10e authored by Marcin Ślusarz's avatar Marcin Ślusarz Committed by Marge Bot

omx: use list_is_linked

Signed-off-by: Marcin Ślusarz's avatarMarcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Timothy Arceri's avatarTimothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Part-of: <mesa/mesa!8110>
parent 240322fa
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment