summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/connection.c
diff options
context:
space:
mode:
authorAkinobu Mita <mita@miraclelinux.com>2006-06-26 09:24:40 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-26 18:58:17 +0200
commita842ef297fd91b1b93f2aa5898d2efd19e95f6a5 (patch)
treeee5c41d7588798a4970c308ad8a7b5d49f6b9c14 /net/rxrpc/connection.c
parent[PATCH] core: use list_move() (diff)
downloadlinux-a842ef297fd91b1b93f2aa5898d2efd19e95f6a5.tar.xz
linux-a842ef297fd91b1b93f2aa5898d2efd19e95f6a5.zip
[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>
Diffstat (limited to 'net/rxrpc/connection.c')
-rw-r--r--net/rxrpc/connection.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/rxrpc/connection.c b/net/rxrpc/connection.c
index 0e0a4553499f..573b572f8f91 100644
--- a/net/rxrpc/connection.c
+++ b/net/rxrpc/connection.c
@@ -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);