netfilter: x_tables: remove unneeded initializations
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 18 Feb 2009 15:30:20 +0000 (16:30 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 18 Feb 2009 15:30:20 +0000 (16:30 +0100)
Later patches change the locking on xt_table and the initialization of
the lock element is not needed since the lock is always initialized in
xt_table_register anyway.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/arptable_filter.c
net/ipv4/netfilter/iptable_filter.c
net/ipv4/netfilter/iptable_mangle.c
net/ipv4/netfilter/iptable_raw.c
net/ipv4/netfilter/iptable_security.c
net/ipv4/netfilter/nf_nat_rule.c
net/ipv6/netfilter/ip6table_filter.c
net/ipv6/netfilter/ip6table_mangle.c
net/ipv6/netfilter/ip6table_raw.c
net/ipv6/netfilter/ip6table_security.c

index e091187..6ecfdae 100644 (file)
@@ -48,8 +48,6 @@ static struct
 static struct xt_table packet_filter = {
        .name           = "filter",
        .valid_hooks    = FILTER_VALID_HOOKS,
-       .lock           = __RW_LOCK_UNLOCKED(packet_filter.lock),
-       .private        = NULL,
        .me             = THIS_MODULE,
        .af             = NFPROTO_ARP,
 };
index 52cb693..c30a969 100644 (file)
@@ -56,7 +56,6 @@ static struct
 static struct xt_table packet_filter = {
        .name           = "filter",
        .valid_hooks    = FILTER_VALID_HOOKS,
-       .lock           = __RW_LOCK_UNLOCKED(packet_filter.lock),
        .me             = THIS_MODULE,
        .af             = AF_INET,
 };
index 3929d20..4087614 100644 (file)
@@ -67,7 +67,6 @@ static struct
 static struct xt_table packet_mangler = {
        .name           = "mangle",
        .valid_hooks    = MANGLE_VALID_HOOKS,
-       .lock           = __RW_LOCK_UNLOCKED(packet_mangler.lock),
        .me             = THIS_MODULE,
        .af             = AF_INET,
 };
index 7f65d18..e5356da 100644 (file)
@@ -39,7 +39,6 @@ static struct
 static struct xt_table packet_raw = {
        .name = "raw",
        .valid_hooks =  RAW_VALID_HOOKS,
-       .lock = __RW_LOCK_UNLOCKED(packet_raw.lock),
        .me = THIS_MODULE,
        .af = AF_INET,
 };
index a52a35f..29ab630 100644 (file)
@@ -60,7 +60,6 @@ static struct
 static struct xt_table security_table = {
        .name           = "security",
        .valid_hooks    = SECURITY_VALID_HOOKS,
-       .lock           = __RW_LOCK_UNLOCKED(security_table.lock),
        .me             = THIS_MODULE,
        .af             = AF_INET,
 };
index a7eb047..6348a79 100644 (file)
@@ -61,7 +61,6 @@ static struct
 static struct xt_table nat_table = {
        .name           = "nat",
        .valid_hooks    = NAT_VALID_HOOKS,
-       .lock           = __RW_LOCK_UNLOCKED(nat_table.lock),
        .me             = THIS_MODULE,
        .af             = AF_INET,
 };
index 40d2e36..ef5a0a3 100644 (file)
@@ -54,7 +54,6 @@ static struct
 static struct xt_table packet_filter = {
        .name           = "filter",
        .valid_hooks    = FILTER_VALID_HOOKS,
-       .lock           = __RW_LOCK_UNLOCKED(packet_filter.lock),
        .me             = THIS_MODULE,
        .af             = AF_INET6,
 };
index d0b31b2..ab0d398 100644 (file)
@@ -60,7 +60,6 @@ static struct
 static struct xt_table packet_mangler = {
        .name           = "mangle",
        .valid_hooks    = MANGLE_VALID_HOOKS,
-       .lock           = __RW_LOCK_UNLOCKED(packet_mangler.lock),
        .me             = THIS_MODULE,
        .af             = AF_INET6,
 };
index 109fab6..4b792b6 100644 (file)
@@ -38,7 +38,6 @@ static struct
 static struct xt_table packet_raw = {
        .name = "raw",
        .valid_hooks = RAW_VALID_HOOKS,
-       .lock = __RW_LOCK_UNLOCKED(packet_raw.lock),
        .me = THIS_MODULE,
        .af = AF_INET6,
 };
index 20bc52f..0ea37ff 100644 (file)
@@ -59,7 +59,6 @@ static struct
 static struct xt_table security_table = {
        .name           = "security",
        .valid_hooks    = SECURITY_VALID_HOOKS,
-       .lock           = __RW_LOCK_UNLOCKED(security_table.lock),
        .me             = THIS_MODULE,
        .af             = AF_INET6,
 };