From 9d4ed9e0771767a110dafffdeb0963e852fd6ae4 Mon Sep 17 00:00:00 2001 From: "Kirill A. Shutemov" Date: Wed, 16 Mar 2011 00:53:24 +0200 Subject: ALSA: ctxfi - use list_move() instead of list_del()/list_add() combination Signed-off-by: Kirill A. Shutemov Signed-off-by: Takashi Iwai --- sound/pci/ctxfi/ctvmem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/pci/ctxfi/ctvmem.c b/sound/pci/ctxfi/ctvmem.c index 65da6e466f80..b78f3fc3c33c 100644 --- a/sound/pci/ctxfi/ctvmem.c +++ b/sound/pci/ctxfi/ctvmem.c @@ -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; -- cgit v1.2.1