Skip to content

Commit

Permalink
netfilter: Use proper rwlock init function
Browse files Browse the repository at this point in the history
Replace the open coded initialization with the init function.

Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Hans Schillstrom <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
KAGA-KOKO authored and davem330 committed Oct 5, 2011
1 parent 1e5289e commit 3458e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/ipvs/ip_vs_ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 3458e21

Please sign in to comment.