projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efed5f2
)
ALSA: ctxfi - use list_move() instead of list_del()/list_add() combination
author
Kirill A. Shutemov
<kirill@shutemov.name>
Tue, 15 Mar 2011 22:53:24 +0000
(
00:53
+0200)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 16 Mar 2011 06:48:40 +0000
(07:48 +0100)
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ctxfi/ctvmem.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/ctxfi/ctvmem.c
b/sound/pci/ctxfi/ctvmem.c
index 65da6e466f80bb27af0d466239a473436e8f40ac..b78f3fc3c33caabd26d49a5b41ed4bfda861d39d 100644
(file)
--- 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;