public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ./drivers/staging/hv/netvsc_drv.c: no assignment within if + whitespace clean up
@ 2011-03-02 17:36 Toralf Förster
  2011-03-02 21:00 ` Staging: hv: netvsc_drv.c: " Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Toralf Förster @ 2011-03-02 17:36 UTC (permalink / raw)
  To: gregkh; +Cc: haiyangz, hjanssen, linux-kernel, toralf.foerster

This patch fixes all complaints of checkpatch.pl.

A typo slipped in in the 1st attempt of this patch.
This patch corrects it.

Signed-off-by: Toralf Förster <toralf.foerster@gmx.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..2f3a9e9 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: Staging: hv: netvsc_drv.c: no assignment within if + whitespace clean up
  2011-03-02 17:36 [PATCH] ./drivers/staging/hv/netvsc_drv.c: no assignment within if + whitespace clean up Toralf Förster
@ 2011-03-02 21:00 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2011-03-02 21:00 UTC (permalink / raw)
  To: Toralf Förster; +Cc: gregkh, haiyangz, hjanssen, linux-kernel

On Wed, Mar 02, 2011 at 06:36:07PM +0100, Toralf Förster wrote:
> This patch fixes all complaints of checkpatch.pl.
> 
> Signed-off-by: Toralf Förster <toralf.foerster@gmx.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..2f3a9e9 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);

This fix is already in the linux-next tree, what tree did you diff this
against?

You can't make staging tree cleanups against Linus's tree, sorry, they
need to be against linux-next in order to properly get all of the
pending patches already queued up.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-02 20:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02 17:36 [PATCH] ./drivers/staging/hv/netvsc_drv.c: no assignment within if + whitespace clean up Toralf Förster
2011-03-02 21:00 ` Staging: hv: netvsc_drv.c: " Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox