Skip to content

Commit

Permalink
net: Remove unused inline function dst_hold_and_use()
Browse files Browse the repository at this point in the history
All uses of dst_hold_and_use() have
been removed since commit 1202cdd ("Remove DECnet support
from kernel"), so remove it.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Gaosheng Cui authored and Jakub Kicinski committed Sep 26, 2022
1 parent d6755f3 commit 0b81882
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/net/dst.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0b81882

Please sign in to comment.