summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaosheng Cui <cuigaosheng1@huawei.com>2022-09-22 16:38:55 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-21 15:39:59 +0200
commita2729c59f389927ddc38cea4b3cd844daaf6c2f4 (patch)
treec292748a14e594639bca3a88ea41211ca1cf2b0a
parent97112288d652951b87ded0e8ea8f3e423595f0ed (diff)
neighbour: Remove unused inline function neigh_key_eq16()
commit c8f01a4a54473f88f8cc0d9046ec9eb5a99815d5 upstream. All uses of neigh_key_eq16() 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>
-rw-r--r--include/net/neighbour.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h
index 5ce035984a4d..a735f034a00e 100644
--- a/include/net/neighbour.h
+++ b/include/net/neighbour.h
@@ -251,11 +251,6 @@ static inline void *neighbour_priv(const struct neighbour *n)
#define NEIGH_UPDATE_F_ADMIN 0x80000000
-static inline bool neigh_key_eq16(const struct neighbour *n, const void *pkey)
-{
- return *(const u16 *)n->primary_key == *(const u16 *)pkey;
-}
-
static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey)
{
return *(const u32 *)n->primary_key == *(const u32 *)pkey;