sctp: use list_move_tail instead of list_del/list_add_tail
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 3 Sep 2012 23:58:16 +0000 (23:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2012 18:16:13 +0000 (14:16 -0400)
commit54a27924237eeb9767135a423dea14a0d1b5954f
treebd64976c76b3de2795a1aef1a68dbc5557c952cd
parent6e129d04de7adbd63e86293533688ce88b9b13d8
sctp: use list_move_tail instead of list_del/list_add_tail

Using list_move_tail() instead of list_del() + list_add_tail().

spatch with a semantic match is used to found this problem.
(http://coccinelle.lip6.fr/)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/outqueue.c