Skip to content

Commit

Permalink
netpoll: Remove wrapper function netpoll_poll
Browse files Browse the repository at this point in the history
Too trivial to live.

cc: WANG Cong <[email protected]>
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
JoePerches authored and davem330 committed Jul 4, 2011
1 parent 234b921 commit 2a49e00
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions net/core/netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -273,7 +268,7 @@ static struct sk_buff *find_skb(struct netpoll *np, int len, int reserve)

if (!skb) {
if (++count < 10) {
netpoll_poll(np);
netpoll_poll_dev(np->dev);
goto repeat;
}
return NULL;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 2a49e00

Please sign in to comment.