Commit c68b9070 authored by David S. Miller's avatar David S. Miller
Browse files

[NETPOLL]: Minor coding-style cleanups.

parent ba4e58ec
Loading
Loading
Loading
Loading
+48 −51
Original line number Diff line number Diff line
@@ -144,7 +144,6 @@ static void service_arp_queue(struct netpoll_info *npi)
		arp_reply(skb);
		skb = skb_dequeue(&npi->arp_tx);
	}
	return;
}

void netpoll_poll(struct netpoll *np)
@@ -243,10 +242,9 @@ static void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb)
 	}

	/* don't get messages out of order, and no recursion */
	if ( skb_queue_len(&npinfo->txq) == 0
	     && npinfo->poll_owner != smp_processor_id()
	     && netif_tx_trylock(dev)) {

	if (skb_queue_len(&npinfo->txq) == 0 &&
	    npinfo->poll_owner != smp_processor_id() &&
	    netif_tx_trylock(dev)) {
		/* try until next clock tick */
		for (tries = jiffies_to_usecs(1)/USEC_PER_POLL; tries > 0; --tries) {
			if (!netif_queue_stopped(dev))
@@ -423,7 +421,6 @@ int __netpoll_rx(struct sk_buff *skb)
	struct netpoll_info *npi = skb->dev->npinfo;
	struct netpoll *np = npi->rx_np;


	if (!np)
		goto out;
	if (skb->dev->type != ARPHRD_ETHER)
@@ -551,8 +548,7 @@ int netpoll_parse_options(struct netpoll *np, char *opt)
	printk(KERN_INFO "%s: remote IP %d.%d.%d.%d\n",
	       np->name, HIPQUAD(np->remote_ip));

	if( *cur != 0 )
	{
	if (*cur != 0) {
		/* MAC address */
		if ((delim = strchr(cur, ':')) == NULL)
			goto parse_failed;
@@ -735,7 +731,8 @@ int netpoll_setup(struct netpoll *np)
	return err;
}

static int __init netpoll_init(void) {
static int __init netpoll_init(void)
{
	skb_queue_head_init(&skb_pool);
	return 0;
}