diff options
author | David S. Miller <davem@davemloft.net> | 2012-03-07 20:53:36 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-09 17:34:50 -0500 |
commit | bdcc0924c8c6e6362bb93b6120631f257aac6f87 (patch) | |
tree | 799cdc5953b5aa620503700fdb97c4c40da17090 | |
parent | 6a91395f20119d696330e2604451614a64369d1b (diff) |
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>
-rw-r--r-- | include/linux/skbuff.h | 6 |
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) | |||
1173 | } | 1173 | } |
1174 | 1174 | ||
1175 | 1175 | ||
1176 | static inline int skb_is_nonlinear(const struct sk_buff *skb) | 1176 | static inline bool skb_is_nonlinear(const struct sk_buff *skb) |
1177 | { | 1177 | { |
1178 | return skb->data_len; | 1178 | return skb->data_len; |
1179 | } | 1179 | } |
@@ -2469,12 +2469,12 @@ static inline struct sec_path *skb_sec_path(struct sk_buff *skb) | |||
2469 | } | 2469 | } |
2470 | #endif | 2470 | #endif |
2471 | 2471 | ||
2472 | static inline int skb_is_gso(const struct sk_buff *skb) | 2472 | static inline bool skb_is_gso(const struct sk_buff *skb) |
2473 | { | 2473 | { |
2474 | return skb_shinfo(skb)->gso_size; | 2474 | return skb_shinfo(skb)->gso_size; |
2475 | } | 2475 | } |
2476 | 2476 | ||
2477 | static inline int skb_is_gso_v6(const struct sk_buff *skb) | 2477 | static inline bool skb_is_gso_v6(const struct sk_buff *skb) |
2478 | { | 2478 | { |
2479 | return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6; | 2479 | return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6; |
2480 | } | 2480 | } |