From: Thomas Gleixner Date: Wed, 5 Oct 2011 03:24:43 +0000 (+0000) Subject: netfilter: Use proper rwlock init function X-Git-Tag: upstream/snapshot3+hdmi~8988^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3458e21c0d384ca04b27a2ea24d9314c1b57530f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git netfilter: Use proper rwlock init function Replace the open coded initialization with the init function. Signed-off-by: Thomas Gleixner Acked-by: Hans Schillstrom Signed-off-by: David S. Miller --- diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index 2b771dc..5290ac3 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/netfilter/ipvs/ip_vs_ctl.c @@ -3679,7 +3679,7 @@ int __net_init ip_vs_control_net_init(struct net *net) int idx; struct netns_ipvs *ipvs = net_ipvs(net); - ipvs->rs_lock = __RW_LOCK_UNLOCKED(ipvs->rs_lock); + rwlock_init(&ipvs->rs_lock); /* Initialize rs_table */ for (idx = 0; idx < IP_VS_RTAB_SIZE; idx++)