Skip to content

Commit

Permalink
ALSA: ctxfi - use list_move() instead of list_del()/list_add() combin…
Browse files Browse the repository at this point in the history
…ation

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Kirill A. Shutemov authored and Takashi Iwai committed Mar 16, 2011
1 parent efed5f2 commit 9d4ed9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/pci/ctxfi/ctvmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9d4ed9e

Please sign in to comment.