diff options
author | Amerigo Wang <amwang@redhat.com> | 2012-08-09 21:24:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-14 17:33:32 -0400 |
commit | 77ab8a54d9a8dcc4a46484a04133314f33f2aba6 (patch) | |
tree | 57473addc796b47c477efef5f026e2c1fe23cc8b /include/linux | |
parent | e15c3c2294605f09f9b336b2f3b97086ab4b8145 (diff) |
netpoll: convert several functions to bool
These functions are just boolean, let them return
bool instead of int.
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netpoll.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h index 61aee86cf21d..66d5379c305e 100644 --- a/include/linux/netpoll.h +++ b/include/linux/netpoll.h | |||
@@ -66,7 +66,7 @@ static inline void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb) | |||
66 | 66 | ||
67 | 67 | ||
68 | #ifdef CONFIG_NETPOLL | 68 | #ifdef CONFIG_NETPOLL |
69 | static inline int netpoll_rx_on(struct sk_buff *skb) | 69 | static inline bool netpoll_rx_on(struct sk_buff *skb) |
70 | { | 70 | { |
71 | struct netpoll_info *npinfo = rcu_dereference_bh(skb->dev->npinfo); | 71 | struct netpoll_info *npinfo = rcu_dereference_bh(skb->dev->npinfo); |
72 | 72 | ||
@@ -125,7 +125,7 @@ static inline void netpoll_poll_unlock(void *have) | |||
125 | } | 125 | } |
126 | } | 126 | } |
127 | 127 | ||
128 | static inline int netpoll_tx_running(struct net_device *dev) | 128 | static inline bool netpoll_tx_running(struct net_device *dev) |
129 | { | 129 | { |
130 | return irqs_disabled(); | 130 | return irqs_disabled(); |
131 | } | 131 | } |
@@ -133,11 +133,11 @@ static inline int netpoll_tx_running(struct net_device *dev) | |||
133 | #else | 133 | #else |
134 | static inline bool netpoll_rx(struct sk_buff *skb) | 134 | static inline bool netpoll_rx(struct sk_buff *skb) |
135 | { | 135 | { |
136 | return 0; | 136 | return false; |
137 | } | 137 | } |
138 | static inline int netpoll_rx_on(struct sk_buff *skb) | 138 | static inline bool netpoll_rx_on(struct sk_buff *skb) |
139 | { | 139 | { |
140 | return 0; | 140 | return false; |
141 | } | 141 | } |
142 | static inline int netpoll_receive_skb(struct sk_buff *skb) | 142 | static inline int netpoll_receive_skb(struct sk_buff *skb) |
143 | { | 143 | { |
@@ -153,9 +153,9 @@ static inline void netpoll_poll_unlock(void *have) | |||
153 | static inline void netpoll_netdev_init(struct net_device *dev) | 153 | static inline void netpoll_netdev_init(struct net_device *dev) |
154 | { | 154 | { |
155 | } | 155 | } |
156 | static inline int netpoll_tx_running(struct net_device *dev) | 156 | static inline bool netpoll_tx_running(struct net_device *dev) |
157 | { | 157 | { |
158 | return 0; | 158 | return false; |
159 | } | 159 | } |
160 | #endif | 160 | #endif |
161 | 161 | ||