]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
net: Use bool in skbuff.h helper functions.
authorDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2012 01:53:36 +0000 (20:53 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Mar 2012 22:34:50 +0000 (14:34 -0800)
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>
include/linux/skbuff.h

index 79ef8209bbb706b51a2276df717d97d83dec3234..8dc8257eab8b2131ba45f73e19b43135bce5fdb6 100644 (file)
@@ -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;
 }