From: Gaosheng Cui Date: Thu, 22 Sep 2022 08:38:57 +0000 (+0800) Subject: net: Remove unused inline function dst_hold_and_use() X-Git-Tag: v5.4.248~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a433b85d1750fc11233021f71d8928353f0f4bf6;p=thirdparty%2Fkernel%2Fstable.git net: Remove unused inline function dst_hold_and_use() 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 Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/net/dst.h b/include/net/dst.h index 34185e5277267..37c540e6394cc 100644 --- a/include/net/dst.h +++ b/include/net/dst.h @@ -236,12 +236,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)