[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1299086087-20928-1-git-send-email-toralf.foerster@gmx.de>
Date: Wed, 2 Mar 2011 18:14:47 +0100
From: Toralf Förster <toralf.foerster@....de>
To: gregkh@...e.de
Cc: haiyangz@...rosoft.com, hjanssen@...rosoft.com,
linux-kernel@...r.kernel.org, toralf.foerster@....de
Subject: [PATCH] ./drivers/staging/hv/netvsc_drv.c: no assignment within if + whitespace clean up
This patch fixes all complaints of checkpatch.pl.
Signed-off-by: Toralf Förster <toralf.foerster@....de>
---
drivers/staging/hv/netvsc_drv.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c
index b41c964..c531e08 100644
--- a/drivers/staging/hv/netvsc_drv.c
+++ b/drivers/staging/hv/netvsc_drv.c
@@ -126,8 +126,9 @@ static void netvsc_xmit_completion(void *context)
dev_kfree_skb_any(skb);
- if ((net_device_ctx->avail += num_pages) >= PACKET_PAGES_HIWATER)
- netif_wake_queue(net);
+ net_device_ctx->avail += num_pages
+ if (net_device_ctx->avail >= PACKET_PAGES_HIWATER)
+ netif_wake_queue(net);
}
}
@@ -207,7 +208,8 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net)
net->stats.tx_packets,
net->stats.tx_bytes);
- if ((net_device_ctx->avail -= num_pages) < PACKET_PAGES_LOWATER)
+ net_device_ctx->avail -= num_pages;
+ if (net_device_ctx->avail < PACKET_PAGES_LOWATER)
netif_stop_queue(net);
} else {
/* we are shutting down or bus overloaded, just drop packet */
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists