mirror of https://gitee.com/openkylin/linux.git
netfilter: nftables: remove unnecessary spin_lock_init()
The spinlock nf_tables_destroy_list_lock is initialized statically. It is unnecessary to initialize by spin_lock_init(). Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
8b9229d158
commit
7726c9ce71
|
@ -9214,7 +9214,6 @@ static int __init nf_tables_module_init(void)
|
|||
{
|
||||
int err;
|
||||
|
||||
spin_lock_init(&nf_tables_destroy_list_lock);
|
||||
err = register_pernet_subsys(&nf_tables_net_ops);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
|
Loading…
Reference in New Issue