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

Commit 880e1b21 authored by zhong jiang's avatar zhong jiang Committed by David S. Miller
Browse files

net: liquidio: list usage cleanup



Trival cleanup, list_move_tail will implement the same function that
list_del() + list_add_tail() will do. hence just replace them.

Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 631e871e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1044,8 +1044,7 @@ void octeon_delete_dispatch_list(struct octeon_device *oct)
		dispatch = &oct->dispatch.dlist[i].list;
		while (dispatch->next != dispatch) {
			temp = dispatch->next;
			list_del(temp);
			list_add_tail(temp, &freelist);
			list_move_tail(temp, &freelist);
		}

		oct->dispatch.dlist[i].opcode = 0;