diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-03-29 16:55:41 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-03-31 23:34:11 +0300 |
commit | 7726c9ce71b047924ee55fe87b5cc10a8714d120 (patch) | |
tree | 6c4ccdaa6166cb6e9cbcc94a33f654e8eeb854f8 /net/netfilter | |
parent | 8b9229d15877ec77775633f058d14145f6eb98fa (diff) | |
download | linux-7726c9ce71b047924ee55fe87b5cc10a8714d120.tar.xz |
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>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nf_tables_api.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index b59fba717a39..b30eee645513 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -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; |