]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tcp: Remove inet_hashinfo2_free_mod()
authorYue Haibing <yuehaibing@huawei.com>
Tue, 17 Jun 2025 13:06:13 +0000 (21:06 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Jun 2025 01:29:58 +0000 (18:29 -0700)
DCCP was removed, inet_hashinfo2_free_mod() is unused now.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250617130613.498659-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/inet_hashtables.h

index 4564b5d348b1ab4343ac3b5c734d914a2dd7ef1a..ae09e91398a5d3253750547ef4bb100d00b419ef 100644 (file)
@@ -202,12 +202,6 @@ static inline spinlock_t *inet_ehash_lockp(
 
 int inet_ehash_locks_alloc(struct inet_hashinfo *hashinfo);
 
-static inline void inet_hashinfo2_free_mod(struct inet_hashinfo *h)
-{
-       kfree(h->lhash2);
-       h->lhash2 = NULL;
-}
-
 static inline void inet_ehash_locks_free(struct inet_hashinfo *hashinfo)
 {
        kvfree(hashinfo->ehash_locks);