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) {
|
||||
/* 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;
|
||||
|
|
Loading…
Reference in a new issue