netfilter: Use proper rwlock init function
authorThomas Gleixner <tglx@linutronix.de>
Wed, 5 Oct 2011 03:24:43 +0000 (03:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Oct 2011 21:51:38 +0000 (17:51 -0400)
Replace the open coded initialization with the init function.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Hans Schillstrom <hans.schillstrom@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/ipvs/ip_vs_ctl.c

index 2b771dc708a30d212ed37fc1a76abb759279f159..5290ac353a5ec70de401918b09566f3209db9049 100644 (file)
@@ -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++)