]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net: Remove unused inline function dst_hold_and_use()
authorGaosheng Cui <cuigaosheng1@huawei.com>
Thu, 22 Sep 2022 08:38:57 +0000 (16:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 13:39:59 +0000 (15:39 +0200)
commit 0b81882ddf8ac2743f657afb001beec7fc3929af upstream.

All uses of dst_hold_and_use() have
been removed since commit 1202cdd66531 ("Remove DECnet support
from kernel"), so remove it.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/dst.h

index d2728525df5a7ef29ed88979a089898f98409d0b..50258a813137792161eb289e4d81167b2cb77181 100644 (file)
@@ -247,12 +247,6 @@ static inline void dst_use_noref(struct dst_entry *dst, unsigned long time)
        }
 }
 
-static inline void dst_hold_and_use(struct dst_entry *dst, unsigned long time)
-{
-       dst_hold(dst);
-       dst_use_noref(dst, time);
-}
-
 static inline struct dst_entry *dst_clone(struct dst_entry *dst)
 {
        if (dst)