From: luo penghao Date: Wed, 8 Dec 2021 07:57:06 +0000 (+0000) Subject: netfilter: conntrack: Remove useless assignment statements X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=284ca7647c67683b32f4f8c0dec6cc38cb2cb9f8;p=linux.git 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 Signed-off-by: luo penghao Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index aa657db183183..b622ef143415d 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;