neighbour: Remove unused inline function neigh_key_eq16()
authorGaosheng Cui <cuigaosheng1@huawei.com>
Thu, 22 Sep 2022 08:38:55 +0000 (16:38 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 26 Sep 2022 18:48:14 +0000 (11:48 -0700)
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>
include/net/neighbour.h

index 3827a6b395fdb67f391853d528bb6f7ff9169449..20745cf7ae1adcedbaf11521c5e418ae766b131a 100644 (file)
@@ -276,11 +276,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;