diff options
author | Akinobu Mita <mita@miraclelinux.com> | 2006-06-26 03:24:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 12:58:17 -0400 |
commit | a842ef297fd91b1b93f2aa5898d2efd19e95f6a5 (patch) | |
tree | ee5c41d7588798a4970c308ad8a7b5d49f6b9c14 /net/rxrpc/call.c | |
parent | 1bfba4e8ea0e555e3a0296051517d96253660ccc (diff) |
[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/call.c')
-rw-r--r-- | net/rxrpc/call.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/rxrpc/call.c b/net/rxrpc/call.c index c4aeb7d40266..d07122b57e0d 100644 --- a/net/rxrpc/call.c +++ b/net/rxrpc/call.c | |||
@@ -1098,8 +1098,7 @@ static void rxrpc_call_receive_data_packet(struct rxrpc_call *call, | |||
1098 | 1098 | ||
1099 | call->app_ready_seq = pmsg->seq; | 1099 | call->app_ready_seq = pmsg->seq; |
1100 | call->app_ready_qty += pmsg->dsize; | 1100 | call->app_ready_qty += pmsg->dsize; |
1101 | list_del_init(&pmsg->link); | 1101 | list_move_tail(&pmsg->link, &call->app_readyq); |
1102 | list_add_tail(&pmsg->link, &call->app_readyq); | ||
1103 | } | 1102 | } |
1104 | 1103 | ||
1105 | /* see if we've got the last packet yet */ | 1104 | /* see if we've got the last packet yet */ |