netfilter: nft_set_rbtree: Remove unused variable nft_net
authorYang Li <yang.lee@linux.alibaba.com>
Wed, 1 Nov 2023 01:33:51 +0000 (09:33 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 14 Nov 2023 15:10:20 +0000 (16:10 +0100)
commit67059b61597c004e23b074547b40604222bee3a0
treea777e9dd94b326914f2862c963de9ae450eb9498
parent4b7b492615cf3017190f55444f7016812b66611d
netfilter: nft_set_rbtree: Remove unused variable nft_net

The code that uses nft_net has been removed, and the nft_pernet function
is merely obtaining a reference to shared data through the net pointer.
The content of the net pointer is not modified or changed, so both of
them should be removed.

silence the warning:
net/netfilter/nft_set_rbtree.c:627:26: warning: variable ‘nft_net’ set but not used

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7103
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_rbtree.c