Commit 9d4ed9e0 authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Takashi Iwai

ALSA: ctxfi - use list_move() instead of list_del()/list_add() combination

Signed-off-by: default avatarKirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent efed5f26
......@@ -52,8 +52,7 @@ get_vm_block(struct ct_vm *vm, unsigned int size)
if (entry->size == size) {
/* Move the vm node from unused list to used list directly */
list_del(&entry->list);
list_add(&entry->list, &vm->used);
list_move(&entry->list, &vm->used);
vm->size -= size;
block = entry;
goto out;
......
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