forked from luck/tmp_suning_uos_patched
netfilter: ebtables: remove unneeded initializations
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>
This commit is contained in:
parent
9c8222b9e7
commit
842bff366b
|
@ -46,7 +46,6 @@ static struct ebt_table broute_table =
|
||||||
.name = "broute",
|
.name = "broute",
|
||||||
.table = &initial_table,
|
.table = &initial_table,
|
||||||
.valid_hooks = 1 << NF_BR_BROUTING,
|
.valid_hooks = 1 << NF_BR_BROUTING,
|
||||||
.lock = __RW_LOCK_UNLOCKED(broute_table.lock),
|
|
||||||
.check = check,
|
.check = check,
|
||||||
.me = THIS_MODULE,
|
.me = THIS_MODULE,
|
||||||
};
|
};
|
||||||
|
|
|
@ -55,7 +55,6 @@ static struct ebt_table frame_filter =
|
||||||
.name = "filter",
|
.name = "filter",
|
||||||
.table = &initial_table,
|
.table = &initial_table,
|
||||||
.valid_hooks = FILTER_VALID_HOOKS,
|
.valid_hooks = FILTER_VALID_HOOKS,
|
||||||
.lock = __RW_LOCK_UNLOCKED(frame_filter.lock),
|
|
||||||
.check = check,
|
.check = check,
|
||||||
.me = THIS_MODULE,
|
.me = THIS_MODULE,
|
||||||
};
|
};
|
||||||
|
|
|
@ -55,7 +55,6 @@ static struct ebt_table frame_nat =
|
||||||
.name = "nat",
|
.name = "nat",
|
||||||
.table = &initial_table,
|
.table = &initial_table,
|
||||||
.valid_hooks = NAT_VALID_HOOKS,
|
.valid_hooks = NAT_VALID_HOOKS,
|
||||||
.lock = __RW_LOCK_UNLOCKED(frame_nat.lock),
|
|
||||||
.check = check,
|
.check = check,
|
||||||
.me = THIS_MODULE,
|
.me = THIS_MODULE,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user