mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
topology: use list_insert() macro in tplg_elem_insert()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
c9e9ee3c40
commit
3b9e39dab5
1 changed files with 3 additions and 5 deletions
|
|
@ -142,10 +142,8 @@ static void tplg_elem_insert(struct tplg_elem *elem_p, struct list_head *list)
|
||||||
if (elem_p->index < elem->index)
|
if (elem_p->index < elem->index)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
p->prev = pos->prev;
|
/* insert item before pos */
|
||||||
pos->prev->next = p;
|
list_insert(p, pos->prev, pos);
|
||||||
pos->prev = p;
|
|
||||||
p->next = pos;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* create a new common element and object */
|
/* create a new common element and object */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue