]> git.baikalelectronics.ru Git - kernel.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)
committerJakub Kicinski <kuba@kernel.org>
Mon, 26 Sep 2022 18:48:14 +0000 (11:48 -0700)
All uses of dst_hold_and_use() have
been removed since commit 482301038114 ("Remove DECnet support
from kernel"), so remove it.

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

index 6aa252c3fc55ccaee58faebf265510469e91d780..00b479ce6b99c9b329a30f8201882a51c9a135a9 100644 (file)
@@ -239,12 +239,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)