]> git.ipfire.org Git - thirdparty/linux.git/commit
netfilter: ipset: Remove unused htable_bits in macro ahash_region
authorZhen Ni <zhen.ni@easystack.cn>
Fri, 29 Aug 2025 08:36:21 +0000 (16:36 +0800)
committerFlorian Westphal <fw@strlen.de>
Thu, 11 Sep 2025 13:40:55 +0000 (15:40 +0200)
commitba941796d7cd1e81f51eed145dad1b47240ff420
treea0e8cde3b40b7a49abcac64f937509f7078b66dd
parent496a6ed8405ef15f6becc0126bf1577717faf86d
netfilter: ipset: Remove unused htable_bits in macro ahash_region

Since the ahash_region() macro was redefined to calculate the region
index solely from HTABLE_REGION_BITS, the htable_bits parameter became
unused.

Remove the unused htable_bits argument and its call sites, simplifying
the code without changing semantics.

Fixes: 8478a729c046 ("netfilter: ipset: fix region locking in hash types")
Signed-off-by: Zhen Ni <zhen.ni@easystack.cn>
Reviewed-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/ipset/ip_set_hash_gen.h