“7869318e4296e27d4cb97505e8739d62b48b2d58”上不存在“git@gitcode.net:openanolis/cloud-kernel.git”
提交 9d4ed9e0 编写于 作者: K Kirill A. Shutemov 提交者: Takashi Iwai

ALSA: ctxfi - use list_move() instead of list_del()/list_add() combination

Signed-off-by: NKirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 efed5f26
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册