IPVS: remove duplicate initialisation or rs_table
authorSimon Horman <horms@verge.net.au>
Tue, 1 Feb 2011 17:24:09 +0000 (18:24 +0100)
committerPatrick McHardy <kaber@trash.net>
Tue, 1 Feb 2011 17:24:09 +0000 (18:24 +0100)
Signed-off-by: Simon Horman <horms@verge.net.au>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Hans Schillstrom <hans@schillstrom.com>
Tested-by: Hans Schillstrom <hans@schillstrom.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/ipvs/ip_vs_ctl.c

index 98df59a12453d8cf35fee45b45074e5c1071ee96..d7c2fa80cee393f066b8774dc992d936aa11a17f 100644 (file)
@@ -3515,9 +3515,6 @@ int __net_init __ip_vs_control_init(struct net *net)
        }
        spin_lock_init(&ipvs->tot_stats->lock);
 
-       for (idx = 0; idx < IP_VS_RTAB_SIZE; idx++)
-               INIT_LIST_HEAD(&ipvs->rs_table[idx]);
-
        proc_net_fops_create(net, "ip_vs", 0, &ip_vs_info_fops);
        proc_net_fops_create(net, "ip_vs_stats", 0, &ip_vs_stats_fops);
        proc_net_fops_create(net, "ip_vs_stats_percpu", 0,