Commit 2ef97332 authored by YOSHIFUJI Hideaki / 吉藤英明's avatar YOSHIFUJI Hideaki / 吉藤英明 Committed by David S. Miller

ipv6: Remove __ipv6_prefix_equal().

ipv6_prefix_equal() just casts its arguments and it is the only
user of __ipv6_prefix_equal().
Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5206c579
...@@ -399,9 +399,12 @@ static inline bool ipv6_addr_equal(const struct in6_addr *a1, ...@@ -399,9 +399,12 @@ static inline bool ipv6_addr_equal(const struct in6_addr *a1,
#endif #endif
} }
static inline bool __ipv6_prefix_equal(const __be32 *a1, const __be32 *a2, static inline bool ipv6_prefix_equal(const struct in6_addr *addr1,
unsigned int prefixlen) const struct in6_addr *addr2,
unsigned int prefixlen)
{ {
const __be32 *a1 = addr1->s6_addr32;
const __be32 *a2 = addr2->s6_addr32;
unsigned int pdw, pbi; unsigned int pdw, pbi;
/* check complete u32 in prefix */ /* check complete u32 in prefix */
...@@ -417,14 +420,6 @@ static inline bool __ipv6_prefix_equal(const __be32 *a1, const __be32 *a2, ...@@ -417,14 +420,6 @@ static inline bool __ipv6_prefix_equal(const __be32 *a1, const __be32 *a2,
return true; return true;
} }
static inline bool ipv6_prefix_equal(const struct in6_addr *a1,
const struct in6_addr *a2,
unsigned int prefixlen)
{
return __ipv6_prefix_equal(a1->s6_addr32, a2->s6_addr32,
prefixlen);
}
struct inet_frag_queue; struct inet_frag_queue;
enum ip6_defrag_users { enum ip6_defrag_users {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment