ipvs: use list_del_init instead of list_del/INIT_LIST_HEAD
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 5 Sep 2012 18:21:53 +0000 (18:21 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 10 Sep 2012 07:48:55 +0000 (09:48 +0200)
commit0edd94887d19ad73539477395c17ea0d6898947a
tree366912d7f49699052941689f8fe88aad278f8da2
parenta67299556ea1aa56daaeb985fd32295dacecba1a
ipvs: use list_del_init instead of list_del/INIT_LIST_HEAD

Using list_del_init() instead of list_del() + INIT_LIST_HEAD().

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>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipvs/ip_vs_ctl.c