[alsa-devel] [PATCH 12/13] alsa: use list_move() instead of list_del()/list_add() combination
Signed-off-by: Kirill A. Shutemov kirill@shutemov.name Cc: Jaroslav Kysela perex@perex.cz Cc: Takashi Iwai tiwai@suse.de Cc: alsa-devel@alsa-project.org --- sound/pci/ctxfi/ctvmem.c | 3 +-- 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;
At Wed, 16 Mar 2011 00:53:24 +0200, Kirill A. Shutemov wrote:
Signed-off-by: Kirill A. Shutemov kirill@shutemov.name Cc: Jaroslav Kysela perex@perex.cz Cc: Takashi Iwai tiwai@suse.de Cc: alsa-devel@alsa-project.org
Thanks, applied now.
Takashi
sound/pci/ctxfi/ctvmem.c | 3 +-- 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);
vm->size -= size; block = entry; goto out;list_move(&entry->list, &vm->used);
-- 1.7.4.1
participants (2)
-
Kirill A. Shutemov
-
Takashi Iwai