]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
neighbour: Remove unused inline function neigh_key_eq16()
authorGaosheng Cui <cuigaosheng1@huawei.com>
Thu, 22 Sep 2022 08:38:55 +0000 (16:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 13:38:59 +0000 (15:38 +0200)
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>
include/net/neighbour.h

index e89273f9a0bc6a1010bb08f43cd7da02b91ca745..c7a26b1eca19d71ffc60f8e6c6c1a7779bf52eb0 100644 (file)
@@ -250,11 +250,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;