summary refs log tree commit diff
diff options
context:
space:
mode:
authorGaosheng Cui <cuigaosheng1@huawei.com>2022-09-22 16:38:57 +0800
committerJakub Kicinski <kuba@kernel.org>2022-09-26 11:48:14 -0700
commit0b81882ddf8ac2743f657afb001beec7fc3929af (patch)
tree71d563a3a7af30af09e231ca64bdfaa9e7847d93
parentd6755f37abfd009e7ca3520c319c93d14cae54b3 (diff)
downloadlinux-0b81882ddf8ac2743f657afb001beec7fc3929af.tar.gz
net: Remove unused inline function dst_hold_and_use()
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>
-rw-r--r--include/net/dst.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/net/dst.h b/include/net/dst.h
index 6aa252c3fc55..00b479ce6b99 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -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)