]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
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 e091187e864fe95ac03437bc73cd0713f2d93a01..6ecfdae7c5895f4213004162ae008dea96308e52 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 52cb6939d093f67f19af6a5c2b69d7fdf46c1921..c30a969724f896295e49be815c11358095d4816d 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 3929d20b9e452aa33d92f29502b1ccb3fc47c306..4087614d95197e817640908087fdb8d30ced8c5a 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 7f65d18333e3ad195f8f03e6accb86c89612dd55..e5356da1fb543093d943a07ef92181a5ad0311b5 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 a52a35f4a584fbc34b95a1f55c86e2ea62133731..29ab630f240a444a2537bfac78dbf1c7dd0c1e24 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 a7eb04719044f0107be50104c874c3cbc84be128..6348a793936e9e0d8df6f98232c7cc7930860b44 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 40d2e36d8fac292b8fdf8663717d3eaf505108c5..ef5a0a32bf8e8c5e6e3335fc52727e7fcf7cd1c5 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 d0b31b259d4d0c69a07b125c0dc356a78038b5aa..ab0d398a2ba7060c277364313bd9690fffddca48 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 109fab6f831ac28f625675e52b9321d91de91cd5..4b792b6ca3211a8b9cd07215e6eb602a1d6a2c6c 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 20bc52f13e436218abdc060721e0fa8a8ca87468..0ea37ff15d561608b843a057679fbb911dcba670 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,
 };