summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill@shutemov.name>2011-03-16 00:53:24 +0200
committerTakashi Iwai <tiwai@suse.de>2011-03-16 07:48:40 +0100
commit9d4ed9e0771767a110dafffdeb0963e852fd6ae4 (patch)
tree1c7f318bd603aff08e7b14379a6cc22a81b6a820 /sound
parentefed5f26664f93991c929d5bb343e65f900d72bc (diff)
downloadop-kernel-dev-9d4ed9e0771767a110dafffdeb0963e852fd6ae4.zip
op-kernel-dev-9d4ed9e0771767a110dafffdeb0963e852fd6ae4.tar.gz
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/ctxfi/ctvmem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/ctxfi/ctvmem.c b/sound/pci/ctxfi/ctvmem.c
index 65da6e4..b78f3fc 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;
OpenPOWER on IntegriCloud