Commit 3458e21c0d384ca04b27a2ea24d9314c1b57530f

Authored by Thomas Gleixner
Committed by David S. Miller
1 parent 1e5289e121

netfilter: Use proper rwlock init function

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/netfilter/ipvs/ip_vs_ctl.c
... ... @@ -3679,7 +3679,7 @@
3679 3679 int idx;
3680 3680 struct netns_ipvs *ipvs = net_ipvs(net);
3681 3681  
3682   - ipvs->rs_lock = __RW_LOCK_UNLOCKED(ipvs->rs_lock);
  3682 + rwlock_init(&ipvs->rs_lock);
3683 3683  
3684 3684 /* Initialize rs_table */
3685 3685 for (idx = 0; idx < IP_VS_RTAB_SIZE; idx++)