summaryrefslogtreecommitdiff
path: root/include/net/neighbour.h
diff options
context:
space:
mode:
authorGaosheng Cui <cuigaosheng1@huawei.com>2022-09-22 11:38:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-21 16:45:40 +0300
commit53076071fb92a46119ba7f4e3369f1e7a5237f9c (patch)
tree3ce071bf50315e4d1489b6988f6f7c9986a56561 /include/net/neighbour.h
parent7230a9e599d30d0fac0d57d866e0e79478e8f0a7 (diff)
downloadlinux-53076071fb92a46119ba7f4e3369f1e7a5237f9c.tar.xz
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>
Diffstat (limited to 'include/net/neighbour.h')
-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 abb22cfd4827..8cce830d88d8 100644
--- a/include/net/neighbour.h
+++ b/include/net/neighbour.h
@@ -260,11 +260,6 @@ static inline void *neighbour_priv(const struct neighbour *n)
extern const struct nla_policy nda_policy[];
-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;