From e66b1dcae4abeeb92470c24cc45529a13835d309 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Thu, 6 May 2010 01:20:10 -0700 Subject: [PATCH] --- yaml --- r: 194796 b: refs/heads/master c: ffb273623bc506d854902a415ef241b79232f93a h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/netpoll.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index d1b8548cd75a..df730f66cd0b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f6dc31a85cd46a959bdd987adad14c3b645e03c1 +refs/heads/master: ffb273623bc506d854902a415ef241b79232f93a diff --git a/trunk/include/linux/netpoll.h b/trunk/include/linux/netpoll.h index 017e604d05f8..e9e231215865 100644 --- a/trunk/include/linux/netpoll.h +++ b/trunk/include/linux/netpoll.h @@ -55,19 +55,19 @@ void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb); #ifdef CONFIG_NETPOLL -static inline int netpoll_rx(struct sk_buff *skb) +static inline bool netpoll_rx(struct sk_buff *skb) { struct netpoll_info *npinfo = skb->dev->npinfo; unsigned long flags; - int ret = 0; + bool ret = false; if (!npinfo || (list_empty(&npinfo->rx_np) && !npinfo->rx_flags)) - return 0; + return false; spin_lock_irqsave(&npinfo->rx_lock, flags); /* check rx_flags again with the lock held */ if (npinfo->rx_flags && __netpoll_rx(skb)) - ret = 1; + ret = true; spin_unlock_irqrestore(&npinfo->rx_lock, flags); return ret;