]> git.baikalelectronics.ru Git - kernel.git/commitdiff
netfilter: conntrack: Remove useless assignment statements
authorluo penghao <luo.penghao@zte.com.cn>
Wed, 8 Dec 2021 07:57:06 +0000 (07:57 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 15 Dec 2021 23:17:40 +0000 (00:17 +0100)
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>
net/netfilter/nf_conntrack_core.c

index aa657db183183aa517c54de5e7a8bcffbc580074..b622ef143415db1b850162b1580d3020371491ba 100644 (file)
@@ -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;