[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220921090455.752011-4-cuigaosheng1@huawei.com>
Date: Wed, 21 Sep 2022 17:04:53 +0800
From: Gaosheng Cui <cuigaosheng1@...wei.com>
To: <idosch@...dia.com>, <petrm@...dia.com>, <davem@...emloft.net>,
<edumazet@...gle.com>, <kuba@...nel.org>, <pabeni@...hat.com>,
<nbd@....name>, <lorenzo@...nel.org>, <ryder.lee@...iatek.com>,
<shayne.chen@...iatek.com>, <sean.wang@...iatek.com>,
<kvalo@...nel.org>, <matthias.bgg@...il.com>, <amcohen@...dia.com>,
<stephen@...workplumber.org>, <cuigaosheng1@...wei.com>
CC: <netdev@...r.kernel.org>, <linux-wireless@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>
Subject: [PATCH 3/5] neighbour: Remove unused inline function neigh_key_eq16()
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@...wei.com>
---
include/net/neighbour.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/include/net/neighbour.h b/include/net/neighbour.h
index 3827a6b395fd..20745cf7ae1a 100644
--- a/include/net/neighbour.h
+++ b/include/net/neighbour.h
@@ -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;
--
2.25.1
Powered by blists - more mailing lists