Skip to content

Commit

Permalink
ipv6: Make ipv6_mc_may_pull() return bool.
Browse files Browse the repository at this point in the history
Consistent with how pskb_may_pull() also now does so.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Oct 7, 2019
1 parent b9df4fd commit 3289086
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/net/addrconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3289086

Please sign in to comment.