Commit 77ab8a54 authored by Amerigo Wang's avatar Amerigo Wang Committed by David S. Miller

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: default avatarCong Wang <amwang@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e15c3c22
...@@ -66,7 +66,7 @@ static inline void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb) ...@@ -66,7 +66,7 @@ static inline void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb)
#ifdef CONFIG_NETPOLL #ifdef CONFIG_NETPOLL
static inline int netpoll_rx_on(struct sk_buff *skb) static inline bool netpoll_rx_on(struct sk_buff *skb)
{ {
struct netpoll_info *npinfo = rcu_dereference_bh(skb->dev->npinfo); struct netpoll_info *npinfo = rcu_dereference_bh(skb->dev->npinfo);
...@@ -125,7 +125,7 @@ static inline void netpoll_poll_unlock(void *have) ...@@ -125,7 +125,7 @@ static inline void netpoll_poll_unlock(void *have)
} }
} }
static inline int netpoll_tx_running(struct net_device *dev) static inline bool netpoll_tx_running(struct net_device *dev)
{ {
return irqs_disabled(); return irqs_disabled();
} }
...@@ -133,11 +133,11 @@ static inline int netpoll_tx_running(struct net_device *dev) ...@@ -133,11 +133,11 @@ static inline int netpoll_tx_running(struct net_device *dev)
#else #else
static inline bool netpoll_rx(struct sk_buff *skb) static inline bool netpoll_rx(struct sk_buff *skb)
{ {
return 0; return false;
} }
static inline int netpoll_rx_on(struct sk_buff *skb) static inline bool netpoll_rx_on(struct sk_buff *skb)
{ {
return 0; return false;
} }
static inline int netpoll_receive_skb(struct sk_buff *skb) static inline int netpoll_receive_skb(struct sk_buff *skb)
{ {
...@@ -153,9 +153,9 @@ static inline void netpoll_poll_unlock(void *have) ...@@ -153,9 +153,9 @@ static inline void netpoll_poll_unlock(void *have)
static inline void netpoll_netdev_init(struct net_device *dev) static inline void netpoll_netdev_init(struct net_device *dev)
{ {
} }
static inline int netpoll_tx_running(struct net_device *dev) static inline bool netpoll_tx_running(struct net_device *dev)
{ {
return 0; return false;
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment