diff options
author | David S. Miller <davem@davemloft.net> | 2010-05-06 04:20:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-06 04:31:27 -0400 |
commit | ffb273623bc506d854902a415ef241b79232f93a (patch) | |
tree | 5eea53b3282aa1c869bf9c4c2132e6e597cb5782 /include/linux/netpoll.h | |
parent | f6dc31a85cd46a959bdd987adad14c3b645e03c1 (diff) |
netpoll: Use 'bool' for netpoll_rx() return type.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netpoll.h')
-rw-r--r-- | include/linux/netpoll.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h index 017e604d05f8..e9e231215865 100644 --- a/include/linux/netpoll.h +++ b/include/linux/netpoll.h | |||
@@ -55,19 +55,19 @@ void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb); | |||
55 | 55 | ||
56 | 56 | ||
57 | #ifdef CONFIG_NETPOLL | 57 | #ifdef CONFIG_NETPOLL |
58 | static inline int netpoll_rx(struct sk_buff *skb) | 58 | static inline bool netpoll_rx(struct sk_buff *skb) |
59 | { | 59 | { |
60 | struct netpoll_info *npinfo = skb->dev->npinfo; | 60 | struct netpoll_info *npinfo = skb->dev->npinfo; |
61 | unsigned long flags; | 61 | unsigned long flags; |
62 | int ret = 0; | 62 | bool ret = false; |
63 | 63 | ||
64 | if (!npinfo || (list_empty(&npinfo->rx_np) && !npinfo->rx_flags)) | 64 | if (!npinfo || (list_empty(&npinfo->rx_np) && !npinfo->rx_flags)) |
65 | return 0; | 65 | return false; |
66 | 66 | ||
67 | spin_lock_irqsave(&npinfo->rx_lock, flags); | 67 | spin_lock_irqsave(&npinfo->rx_lock, flags); |
68 | /* check rx_flags again with the lock held */ | 68 | /* check rx_flags again with the lock held */ |
69 | if (npinfo->rx_flags && __netpoll_rx(skb)) | 69 | if (npinfo->rx_flags && __netpoll_rx(skb)) |
70 | ret = 1; | 70 | ret = true; |
71 | spin_unlock_irqrestore(&npinfo->rx_lock, flags); | 71 | spin_unlock_irqrestore(&npinfo->rx_lock, flags); |
72 | 72 | ||
73 | return ret; | 73 | return ret; |