[OPW,kernel,v2,19/24] staging: rtl8187se: Added whitespaces around '+=' and '=='
diff mbox

Message ID c8934748612f3642dd49ba08c90ce8097b913b7d.1394827593.git.anarey@gmail.com
State New, archived
Headers show

Commit Message

Ana Rey March 14, 2014, 8:16 p.m. UTC
Added whitespaces around '+=' and '==' as the codingStyle of the kernel
recommends.

This patch fixes these error messages found by checkpatch.pl:
ERROR: spaces required around that '+=' (ctx:VxV
ERROR: spaces required around that '==' (ctx:VxW)

Signed-off-by: Ana Rey <anarey@gmail.com>
---
 drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Patch
diff mbox

diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
index be4f7c7..37c5c0e 100644
--- a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
+++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
@@ -655,7 +655,7 @@  static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee,
 	int rate_len = ieee->current_network.rates_len+2;
 	int rate_ex_len = ieee->current_network.rates_ex_len;
 	int wpa_ie_len = ieee->wpa_ie_len;
-	if (rate_ex_len > 0) rate_ex_len+=2;
+	if (rate_ex_len > 0) rate_ex_len += 2;
 
 	if (ieee->current_network.capability & WLAN_CAPABILITY_IBSS)
 		atim_len = 4;
@@ -719,7 +719,7 @@  static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee,
 	*(tag++) = MFIE_TYPE_RATES;
 	*(tag++) = rate_len-2;
 	memcpy(tag, ieee->current_network.rates, rate_len-2);
-	tag+=rate_len-2;
+	tag += rate_len-2;
 
 	*(tag++) = MFIE_TYPE_DS_SET;
 	*(tag++) = 1;
@@ -729,7 +729,7 @@  static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee,
 		*(tag++) = MFIE_TYPE_IBSS_SET;
 		*(tag++) = 2;
 		*((u16*)(tag)) = cpu_to_le16(ieee->current_network.atim_window);
-		tag+=2;
+		tag += 2;
 	}
 
 	if (erp_len) {
@@ -742,7 +742,7 @@  static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee,
 		*(tag++) = MFIE_TYPE_RATES_EX;
 		*(tag++) = rate_ex_len-2;
 		memcpy(tag, ieee->current_network.rates_ex, rate_ex_len-2);
-		tag+=rate_ex_len-2;
+		tag += rate_ex_len-2;
 	}
 
 	if (wpa_ie_len)	{
@@ -1178,13 +1178,13 @@  inline void ieee80211_softmac_new_net(struct ieee80211_device *ieee,
 		 */
 		apset = ieee->wap_set;
 		ssidset = ieee->ssid_set;
-		ssidbroad =  !(net->ssid_len == 0 || net->ssid[0]== '\0');
-		apmatch = (memcmp(ieee->current_network.bssid, net->bssid, ETH_ALEN)==0);
+		ssidbroad =  !(net->ssid_len == 0 || net->ssid[0] == '\0');
+		apmatch = (memcmp(ieee->current_network.bssid, net->bssid, ETH_ALEN) == 0);
 
 		if (ieee->current_network.ssid_len != net->ssid_len)
 			ssidmatch = 0;
 		else
-			ssidmatch = (0==strncmp(ieee->current_network.ssid, net->ssid, net->ssid_len));
+			ssidmatch = (0 == strncmp(ieee->current_network.ssid, net->ssid, net->ssid_len));
 
 		/* if the user set the AP check if match.
 		 * if the network does not broadcast essid we check the user