Commit 591968b2 authored by John Whitmore's avatar John Whitmore Committed by Greg Kroah-Hartman
Browse files

staging:rtl8192u: Correct spacing before and after parenthesis - Style



Corrected coding style issues aroung opening and closed parenthesis.
Spaces, or blank line, removed from after '(' or before ')'

Signed-off-by: default avatarJohn Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eb2cbcc3
Loading
Loading
Loading
Loading
+36 −42
Original line number Diff line number Diff line
@@ -1367,12 +1367,12 @@ inline void ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct ieee
		ssidmatch = (ieee->current_network.ssid_len == net->ssid_len) &&
			(!strncmp(ieee->current_network.ssid, net->ssid, net->ssid_len));

		if (	/* if the user set the AP check if match.
		/* if the user set the AP check if match.
		 * if the network does not broadcast essid we check the user supplyed ANY essid
		 * if the network does broadcast and the user does not set essid it is OK
		 * if the network does broadcast and the user did set essid chech if essid match
		 */
			(apset && apmatch &&
		if ((apset && apmatch &&
				((ssidset && ssidbroad && ssidmatch) || (ssidbroad && !ssidset) || (!ssidbroad && ssidset))) ||
			/* if the ap is not set, check that the user set the bssid
			 * and the network does broadcast and that those two bssid matches
@@ -1931,11 +1931,9 @@ ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,
			} else {
				/* aid could not been allocated */
				ieee->softmac_stats.rx_ass_err++;
				printk(
					"Association response status code 0x%x\n",
				printk("Association response status code 0x%x\n",
				       errcode);
				IEEE80211_DEBUG_MGMT(
					"Association response status code 0x%x\n",
				IEEE80211_DEBUG_MGMT("Association response status code 0x%x\n",
						     errcode);
				if (ieee->AsocRetryCount < RT_ASOC_RETRY_LIMIT)
					schedule_work(&ieee->associate_procedure_wq);
@@ -2060,8 +2058,7 @@ void ieee80211_softmac_xmit(struct ieee80211_txb *txb, struct ieee80211_device *
			skb_queue_tail(&ieee->skb_waitQ[queue_index], txb->fragments[i]);
#endif
		} else {
			ieee->softmac_data_hard_start_xmit(
					txb->fragments[i],
			ieee->softmac_data_hard_start_xmit(txb->fragments[i],
							   ieee->dev, ieee->rate);
			//ieee->stats.tx_packets++;
			//ieee->stats.tx_bytes += txb->fragments[i]->len;
@@ -2084,8 +2081,7 @@ static void ieee80211_resume_tx(struct ieee80211_device *ieee)
			ieee->tx_pending.frag = i;
			return;
		} else {
			ieee->softmac_data_hard_start_xmit(
				ieee->tx_pending.txb->fragments[i],
			ieee->softmac_data_hard_start_xmit(ieee->tx_pending.txb->fragments[i],
							   ieee->dev, ieee->rate);
			//(i+1)<ieee->tx_pending.txb->nr_frags);
			ieee->stats.tx_packets++;
@@ -2935,8 +2931,7 @@ static int ieee80211_wpa_set_encryption(struct ieee80211_device *ieee,
	return ret;
}

static inline struct sk_buff *ieee80211_disassociate_skb(
							struct ieee80211_network *beacon,
static inline struct sk_buff *ieee80211_disassociate_skb(struct ieee80211_network *beacon,
							 struct ieee80211_device *ieee,
							 u8	asRsn)
{
@@ -2960,8 +2955,7 @@ static inline struct sk_buff *ieee80211_disassociate_skb(
}

void
SendDisassociation(
		struct ieee80211_device *ieee,
SendDisassociation(struct ieee80211_device *ieee,
		   u8			   *asSta,
		   u8			    asRsn
)