Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d4ed9e0 authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Takashi Iwai
Browse files

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

parent efed5f26
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -52,8 +52,7 @@ get_vm_block(struct ct_vm *vm, unsigned int size)


	if (entry->size == size) {
	if (entry->size == size) {
		/* Move the vm node from unused list to used list directly */
		/* Move the vm node from unused list to used list directly */
		list_del(&entry->list);
		list_move(&entry->list, &vm->used);
		list_add(&entry->list, &vm->used);
		vm->size -= size;
		vm->size -= size;
		block = entry;
		block = entry;
		goto out;
		goto out;