netfilter: ebtables: remove unneeded initializations
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 18 Feb 2009 15:30:38 +0000 (16:30 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 18 Feb 2009 15:30:38 +0000 (16:30 +0100)
The initialization of the lock element is not needed
since the lock is always initialized in ebt_register_table.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/bridge/netfilter/ebtable_broute.c
net/bridge/netfilter/ebtable_filter.c
net/bridge/netfilter/ebtable_nat.c

index 8604dfc1fc3be0f2c36f6b84b3bceecb930cdfba..c751111440f87faffbab7b51bf03689b233091b1 100644 (file)
@@ -46,7 +46,6 @@ static struct ebt_table broute_table =
        .name           = "broute",
        .table          = &initial_table,
        .valid_hooks    = 1 << NF_BR_BROUTING,
-       .lock           = __RW_LOCK_UNLOCKED(broute_table.lock),
        .check          = check,
        .me             = THIS_MODULE,
 };
index 2b2e8040a9c68c4b55fd1b30850fa9703ba4f7ca..a5eea72938a6483f7938afd4bba7a6b81d35605e 100644 (file)
@@ -55,7 +55,6 @@ static struct ebt_table frame_filter =
        .name           = "filter",
        .table          = &initial_table,
        .valid_hooks    = FILTER_VALID_HOOKS,
-       .lock           = __RW_LOCK_UNLOCKED(frame_filter.lock),
        .check          = check,
        .me             = THIS_MODULE,
 };
index 3fe1ae87e35f912cdb0e255cadff4deb579d121f..6024c551f9a9c5b35b7d465cef485fda672ef88b 100644 (file)
@@ -55,7 +55,6 @@ static struct ebt_table frame_nat =
        .name           = "nat",
        .table          = &initial_table,
        .valid_hooks    = NAT_VALID_HOOKS,
-       .lock           = __RW_LOCK_UNLOCKED(frame_nat.lock),
        .check          = check,
        .me             = THIS_MODULE,
 };