[PATCH] net/rxrpc: use list_move()
This patch converts the combination of list_del(A) and list_add(A, B) to list_move(A, B) under net/rxrpc. Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Akinobu Mita <mita@miraclelinux.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
1bfba4e8ea
commit
a842ef297f
@@ -1098,8 +1098,7 @@ static void rxrpc_call_receive_data_packet(struct rxrpc_call *call,
|
||||
|
||||
call->app_ready_seq = pmsg->seq;
|
||||
call->app_ready_qty += pmsg->dsize;
|
||||
list_del_init(&pmsg->link);
|
||||
list_add_tail(&pmsg->link, &call->app_readyq);
|
||||
list_move_tail(&pmsg->link, &call->app_readyq);
|
||||
}
|
||||
|
||||
/* see if we've got the last packet yet */
|
||||
|
Reference in New Issue
Block a user