Skip to content
Snippets Groups Projects
Commit 32890862 authored by David S. Miller's avatar David S. Miller
Browse files

ipv6: Make ipv6_mc_may_pull() return bool.


Consistent with how pskb_may_pull() also now does so.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b9df4fd7
No related branches found
No related tags found
No related merge requests found
......@@ -202,11 +202,11 @@ u32 ipv6_addr_label(struct net *net, const struct in6_addr *addr,
/*
* multicast prototypes (mcast.c)
*/
static inline int ipv6_mc_may_pull(struct sk_buff *skb,
unsigned int len)
static inline bool ipv6_mc_may_pull(struct sk_buff *skb,
unsigned int len)
{
if (skb_transport_offset(skb) + ipv6_transport_len(skb) < len)
return 0;
return false;
return pskb_may_pull(skb, len);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment