summaryrefslogtreecommitdiff
path: root/include/net/addrconf.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2019-10-07 16:37:27 +0300
committerDavid S. Miller <davem@davemloft.net>2019-10-07 16:37:27 +0300
commit328908621081c3c7455c39549c5334e74b7c525a (patch)
treecd9b7ae8144daaef31845bbd6fb9e50e936049ad /include/net/addrconf.h
parentb9df4fd7e99cb8bfd80c4143f3045d63b1754ad0 (diff)
downloadlinux-328908621081c3c7455c39549c5334e74b7c525a.tar.xz
ipv6: Make ipv6_mc_may_pull() return bool.
Consistent with how pskb_may_pull() also now does so. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/addrconf.h')
-rw-r--r--include/net/addrconf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index 3f62b347b04a..1bab88184d3c 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -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);
}