ALSA: ctxfi - use list_move() instead of list_del()/list_add() combination
Kirill A. Shutemov [Tue, 15 Mar 2011 22:53:24 +0000 (00:53 +0200)]
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

sound/pci/ctxfi/ctvmem.c

index 65da6e4..b78f3fc 100644 (file)
@@ -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;