Skip to contentSkip to conversation

mwifiex: missing curly braces in mwifiex_write_data_complete()

PATCH Applied Dan Carpenter 2 participants 2 messages Mar 18, 2015 – Mar 20, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mwifiex: missing curly braces in mwifiex_write_data_complete()

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

Fixes e35000ead491 ('mwifiex: preprocess packets from TX queue')
drivers/net/wireless/mwifiex/txrx.c +2 -1
index 4d43371..a245f44 100644
@@ -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 */
Applied
#1 lore raw
Quoted 5 lines

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

Fixes e35000ead491 ('mwifiex: preprocess packets from TX queue')

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

Kalle Valo