summaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorDavid S. Miller2012-03-08 02:53:36 +0100
committerDavid S. Miller2012-03-09 23:34:50 +0100
commitbdcc0924c8c6e6362bb93b6120631f257aac6f87 (patch)
tree799cdc5953b5aa620503700fdb97c4c40da17090 /include/linux/skbuff.h
parentipv4: Make ip_rcv_options() return bool. (diff)
downloadkernel-qcow2-linux-bdcc0924c8c6e6362bb93b6120631f257aac6f87.tar.gz
kernel-qcow2-linux-bdcc0924c8c6e6362bb93b6120631f257aac6f87.tar.xz
kernel-qcow2-linux-bdcc0924c8c6e6362bb93b6120631f257aac6f87.zip
net: Use bool in skbuff.h helper functions.
In particular do this for skb_is_nonlinear(), skb_is_gso(), and skb_is_gso_v6(). Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 79ef8209bbb7..8dc8257eab8b 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1173,7 +1173,7 @@ static inline struct sk_buff *__skb_dequeue_tail(struct sk_buff_head *list)
}
-static inline int skb_is_nonlinear(const struct sk_buff *skb)
+static inline bool skb_is_nonlinear(const struct sk_buff *skb)
{
return skb->data_len;
}
@@ -2469,12 +2469,12 @@ static inline struct sec_path *skb_sec_path(struct sk_buff *skb)
}
#endif
-static inline int skb_is_gso(const struct sk_buff *skb)
+static inline bool skb_is_gso(const struct sk_buff *skb)
{
return skb_shinfo(skb)->gso_size;
}
-static inline int skb_is_gso_v6(const struct sk_buff *skb)
+static inline bool skb_is_gso_v6(const struct sk_buff *skb)
{
return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6;
}