mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
ALSA: ctxfi - use list_move() instead of list_del()/list_add() combination
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
efed5f2666
commit
9d4ed9e077
1 changed files with 1 additions and 2 deletions
|
@ -52,8 +52,7 @@ get_vm_block(struct ct_vm *vm, unsigned int size)
|
||||||
|
|
||||||
if (entry->size == size) {
|
if (entry->size == size) {
|
||||||
/* Move the vm node from unused list to used list directly */
|
/* Move the vm node from unused list to used list directly */
|
||||||
list_del(&entry->list);
|
list_move(&entry->list, &vm->used);
|
||||||
list_add(&entry->list, &vm->used);
|
|
||||||
vm->size -= size;
|
vm->size -= size;
|
||||||
block = entry;
|
block = entry;
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in a new issue