[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
@@ -402,8 +402,7 @@ void rxrpc_put_connection(struct rxrpc_connection *conn)
|
||||
|
||||
/* move to graveyard queue */
|
||||
_debug("burying connection: {%08x}", ntohl(conn->conn_id));
|
||||
list_del(&conn->link);
|
||||
list_add_tail(&conn->link, &peer->conn_graveyard);
|
||||
list_move_tail(&conn->link, &peer->conn_graveyard);
|
||||
|
||||
rxrpc_krxtimod_add_timer(&conn->timeout, rxrpc_conn_timeout * HZ);
|
||||
|
||||
|
Reference in New Issue
Block a user