aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_conntrack_core.c
diff options
context:
space:
mode:
authorluo penghao <luo.penghao@zte.com.cn>2021-12-08 07:57:06 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2021-12-16 00:17:40 +0100
commit284ca7647c67683b32f4f8c0dec6cc38cb2cb9f8 (patch)
tree254618996da90be7da6473bee3568f6b08c07d5b /net/netfilter/nf_conntrack_core.c
parentnetfilter: bridge: add support for pppoe filtering (diff)
downloadlinux-dev-284ca7647c67683b32f4f8c0dec6cc38cb2cb9f8.tar.xz
linux-dev-284ca7647c67683b32f4f8c0dec6cc38cb2cb9f8.zip
netfilter: conntrack: Remove useless assignment statements
The old_size assignment here will not be used anymore The clang_analyzer complains as follows: Value stored to 'old_size' is never read Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: luo penghao <luo.penghao@zte.com.cn> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_conntrack_core.c')
-rw-r--r--net/netfilter/nf_conntrack_core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index aa657db18318..b622ef143415 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -2588,7 +2588,6 @@ int nf_conntrack_hash_resize(unsigned int hashsize)
hlist_nulls_add_head_rcu(&h->hnnode, &hash[bucket]);
}
}
- old_size = nf_conntrack_htable_size;
old_hash = nf_conntrack_hash;
nf_conntrack_hash = hash;