linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] mwifiex: missing curly braces in mwifiex_write_data_complete()
@ 2015-03-18  8:22 Dan Carpenter
  2015-03-20  7:00 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2015-03-18  8:22 UTC (permalink / raw)
  To: Amitkumar Karwar, Zhaoyang Liu
  Cc: Avinash Patil, Kalle Valo, linux-wireless, kernel-janitors

It's clear from the indenting that curly braces were intended here.

Fixes: e35000ead491 ('mwifiex: preprocess packets from TX queue')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/net/wireless/mwifiex/txrx.c b/drivers/net/wireless/mwifiex/txrx.c
index 4d43371..a245f44 100644
--- a/drivers/net/wireless/mwifiex/txrx.c
+++ b/drivers/net/wireless/mwifiex/txrx.c
@@ -302,10 +302,11 @@ int mwifiex_write_data_complete(struct mwifiex_adapter *adapter,
 		priv->stats.tx_errors++;
 	}
 
-	if (tx_info->flags & MWIFIEX_BUF_FLAG_BRIDGED_PKT)
+	if (tx_info->flags & MWIFIEX_BUF_FLAG_BRIDGED_PKT) {
 		atomic_dec_return(&adapter->pending_bridged_pkts);
 		if (tx_info->flags & MWIFIEX_BUF_FLAG_AGGR_PKT)
 			goto done;
+	}
 
 	if (aggr)
 		/* For skb_aggr, do not wake up tx queue */

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

* Re: mwifiex: missing curly braces in mwifiex_write_data_complete()
  2015-03-18  8:22 [patch] mwifiex: missing curly braces in mwifiex_write_data_complete() Dan Carpenter
@ 2015-03-20  7:00 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2015-03-20  7:00 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Amitkumar Karwar, Zhaoyang Liu, Avinash Patil, linux-wireless,
	kernel-janitors


> It's clear from the indenting that curly braces were intended here.
> 
> Fixes: e35000ead491 ('mwifiex: preprocess packets from TX queue')
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

Thanks, applied to wireless-drivers-next.git.

Kalle Valo

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

end of thread, other threads:[~2015-03-20  7:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-18  8:22 [patch] mwifiex: missing curly braces in mwifiex_write_data_complete() Dan Carpenter
2015-03-20  7:00 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).