[NETFILTER]: nf_nat: remove double bysource hash initialization
authorPatrick McHardy <kaber@trash.net>
Thu, 31 Jan 2008 11:56:04 +0000 (03:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:27:28 +0000 (19:27 -0800)
The hash table is already initialized by nf_ct_alloc_hashtable().

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/nf_nat_core.c

index e53ae1ef8f5e1f0dae45e5d191b079c681a0dcb3..c07575dc702c440caffd69e7ae33d7c93b0d5212 100644 (file)
@@ -654,10 +654,6 @@ static int __init nf_nat_init(void)
        rcu_assign_pointer(nf_nat_protos[IPPROTO_ICMP], &nf_nat_protocol_icmp);
        write_unlock_bh(&nf_nat_lock);
 
-       for (i = 0; i < nf_nat_htable_size; i++) {
-               INIT_HLIST_HEAD(&bysource[i]);
-       }
-
        /* Initialize fake conntrack so that NAT will skip it */
        nf_conntrack_untracked.status |= IPS_NAT_DONE_MASK;