summaryrefslogtreecommitdiff
path: root/net/core/netpoll.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-06-30 19:08:58 +0400
committerDavid S. Miller <davem@davemloft.net>2011-07-04 07:02:07 +0400
commit2a49e001cbe3ebf5987024052ed0dff67689c5bb (patch)
treeebc01049f1c71f5233169721a1d8c216ec9db2ad /net/core/netpoll.c
parent234b921dbcf144826e2e2b3663cd8090892ee2b2 (diff)
downloadlinux-2a49e001cbe3ebf5987024052ed0dff67689c5bb.tar.xz
netpoll: Remove wrapper function netpoll_poll
Too trivial to live. cc: WANG Cong <amwang@redhat.com> Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/netpoll.c')
-rw-r--r--net/core/netpoll.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index 4ce595e45f91..adf84dd8c7b5 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -209,11 +209,6 @@ static void netpoll_poll_dev(struct net_device *dev)
zap_completion_queue();
}
-static void netpoll_poll(struct netpoll *np)
-{
- netpoll_poll_dev(np->dev);
-}
-
static void refill_skbs(void)
{
struct sk_buff *skb;
@@ -273,7 +268,7 @@ repeat:
if (!skb) {
if (++count < 10) {
- netpoll_poll(np);
+ netpoll_poll_dev(np->dev);
goto repeat;
}
return NULL;
@@ -334,7 +329,7 @@ void netpoll_send_skb_on_dev(struct netpoll *np, struct sk_buff *skb,
}
/* tickle device maybe there is some cleanup */
- netpoll_poll(np);
+ netpoll_poll_dev(np->dev);
udelay(USEC_PER_POLL);
}