]> Pileus Git - ~andy/linux/blobdiff - sound/pci/ctxfi/ctvmem.c
ALSA: ctxfi - use list_move() instead of list_del()/list_add() combination
[~andy/linux] / sound / pci / ctxfi / ctvmem.c
index 65da6e466f80bb27af0d466239a473436e8f40ac..b78f3fc3c33caabd26d49a5b41ed4bfda861d39d 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;