diff options
author | Joe Perches <joe@perches.com> | 2011-06-30 11:08:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-03 23:02:07 -0400 |
commit | 2a49e001cbe3ebf5987024052ed0dff67689c5bb (patch) | |
tree | ebc01049f1c71f5233169721a1d8c216ec9db2ad | |
parent | 234b921dbcf144826e2e2b3663cd8090892ee2b2 (diff) |
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>
-rw-r--r-- | net/core/netpoll.c | 9 |
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) | |||
209 | zap_completion_queue(); | 209 | zap_completion_queue(); |
210 | } | 210 | } |
211 | 211 | ||
212 | static void netpoll_poll(struct netpoll *np) | ||
213 | { | ||
214 | netpoll_poll_dev(np->dev); | ||
215 | } | ||
216 | |||
217 | static void refill_skbs(void) | 212 | static void refill_skbs(void) |
218 | { | 213 | { |
219 | struct sk_buff *skb; | 214 | struct sk_buff *skb; |
@@ -273,7 +268,7 @@ repeat: | |||
273 | 268 | ||
274 | if (!skb) { | 269 | if (!skb) { |
275 | if (++count < 10) { | 270 | if (++count < 10) { |
276 | netpoll_poll(np); | 271 | netpoll_poll_dev(np->dev); |
277 | goto repeat; | 272 | goto repeat; |
278 | } | 273 | } |
279 | return NULL; | 274 | return NULL; |
@@ -334,7 +329,7 @@ void netpoll_send_skb_on_dev(struct netpoll *np, struct sk_buff *skb, | |||
334 | } | 329 | } |
335 | 330 | ||
336 | /* tickle device maybe there is some cleanup */ | 331 | /* tickle device maybe there is some cleanup */ |
337 | netpoll_poll(np); | 332 | netpoll_poll_dev(np->dev); |
338 | 333 | ||
339 | udelay(USEC_PER_POLL); | 334 | udelay(USEC_PER_POLL); |
340 | } | 335 | } |