aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/atmdev.h2
-rw-r--r--include/linux/etherdevice.h4
-rw-r--r--include/linux/netdevice.h2
-rw-r--r--include/linux/skbuff.h6
4 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/atmdev.h b/include/linux/atmdev.h
index f6481daf6e52..a8e4e832cdbb 100644
--- a/include/linux/atmdev.h
+++ b/include/linux/atmdev.h
@@ -449,7 +449,7 @@ void vcc_insert_socket(struct sock *sk);
449 449
450static inline int atm_guess_pdu2truesize(int size) 450static inline int atm_guess_pdu2truesize(int size)
451{ 451{
452 return (SKB_DATA_ALIGN(size) + sizeof(struct skb_shared_info)); 452 return SKB_DATA_ALIGN(size) + sizeof(struct skb_shared_info);
453} 453}
454 454
455 455
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h
index fb6aa6070921..f16a01081e15 100644
--- a/include/linux/etherdevice.h
+++ b/include/linux/etherdevice.h
@@ -71,7 +71,7 @@ static inline int is_zero_ether_addr(const u8 *addr)
71 */ 71 */
72static inline int is_multicast_ether_addr(const u8 *addr) 72static inline int is_multicast_ether_addr(const u8 *addr)
73{ 73{
74 return (0x01 & addr[0]); 74 return 0x01 & addr[0];
75} 75}
76 76
77/** 77/**
@@ -82,7 +82,7 @@ static inline int is_multicast_ether_addr(const u8 *addr)
82 */ 82 */
83static inline int is_local_ether_addr(const u8 *addr) 83static inline int is_local_ether_addr(const u8 *addr)
84{ 84{
85 return (0x02 & addr[0]); 85 return 0x02 & addr[0];
86} 86}
87 87
88/** 88/**
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index f7f1302138af..45dcda5bfda9 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1676,7 +1676,7 @@ static inline void netif_wake_subqueue(struct net_device *dev, u16 queue_index)
1676 */ 1676 */
1677static inline int netif_is_multiqueue(const struct net_device *dev) 1677static inline int netif_is_multiqueue(const struct net_device *dev)
1678{ 1678{
1679 return (dev->num_tx_queues > 1); 1679 return dev->num_tx_queues > 1;
1680} 1680}
1681 1681
1682extern void netif_set_real_num_tx_queues(struct net_device *dev, 1682extern void netif_set_real_num_tx_queues(struct net_device *dev,
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 9e8085a89589..b2c41d19735c 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -601,7 +601,7 @@ static inline int skb_queue_empty(const struct sk_buff_head *list)
601static inline bool skb_queue_is_last(const struct sk_buff_head *list, 601static inline bool skb_queue_is_last(const struct sk_buff_head *list,
602 const struct sk_buff *skb) 602 const struct sk_buff *skb)
603{ 603{
604 return (skb->next == (struct sk_buff *) list); 604 return skb->next == (struct sk_buff *)list;
605} 605}
606 606
607/** 607/**
@@ -614,7 +614,7 @@ static inline bool skb_queue_is_last(const struct sk_buff_head *list,
614static inline bool skb_queue_is_first(const struct sk_buff_head *list, 614static inline bool skb_queue_is_first(const struct sk_buff_head *list,
615 const struct sk_buff *skb) 615 const struct sk_buff *skb)
616{ 616{
617 return (skb->prev == (struct sk_buff *) list); 617 return skb->prev == (struct sk_buff *)list;
618} 618}
619 619
620/** 620/**
@@ -2156,7 +2156,7 @@ static inline u16 skb_get_rx_queue(const struct sk_buff *skb)
2156 2156
2157static inline bool skb_rx_queue_recorded(const struct sk_buff *skb) 2157static inline bool skb_rx_queue_recorded(const struct sk_buff *skb)
2158{ 2158{
2159 return (skb->queue_mapping != 0); 2159 return skb->queue_mapping != 0;
2160} 2160}
2161 2161
2162extern u16 skb_tx_hash(const struct net_device *dev, 2162extern u16 skb_tx_hash(const struct net_device *dev,