Skip to contentSkip to conversation

Staging: rtl8192u: r8192U_wx.c Fixed code-style warnings

PATCH New Chaitanya Hazarey 1 participant 3 messages Jun 20, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 Staging: rtl8192u: r8192U_wx.c Fixed code-style warnings

Fixed some of the following warning generated by checkpatch.pl:

WARNING: Missing a blank line after declarations

---
 drivers/staging/rtl8192u/r8192U_wx.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
drivers/staging/rtl8192u/r8192U_wx.c +12 -1
index ceb06d8..d061797 100644
@@ -57,6 +57,7 @@ static int r8192_wx_get_rate(struct net_device *dev,
 			     union iwreq_data *wrqu, char *extra)
 {
 	struct r8192_priv *priv = ieee80211_priv(dev);
+
 	return ieee80211_wx_get_rate(priv->ieee80211, info, wrqu, extra);
 }
 
@@ -100,6 +101,7 @@ static int r8192_wx_get_rts(struct net_device *dev,
 			     union iwreq_data *wrqu, char *extra)
 {
 	struct r8192_priv *priv = ieee80211_priv(dev);
+
 	return ieee80211_wx_get_rts(priv->ieee80211, info, wrqu, extra);
 }
 
@@ -124,6 +126,7 @@ static int r8192_wx_get_power(struct net_device *dev,
 			     union iwreq_data *wrqu, char *extra)
 {
 	struct r8192_priv *priv = ieee80211_priv(dev);
+
 	return ieee80211_wx_get_power(priv->ieee80211, info, wrqu, extra);
 }
 
@@ -194,6 +197,7 @@ static int r8192_wx_set_mode(struct net_device *dev, struct iw_request_info *a,
 {
 	struct r8192_priv *priv = ieee80211_priv(dev);
 	int ret;
+
 	down(&priv->wx_sem);
 
 	ret = ieee80211_wx_set_mode(priv->ieee80211, a, wrqu, b);
@@ -384,6 +388,7 @@ static int r8192_wx_set_essid(struct net_device *dev,
 {
 	struct r8192_priv *priv = ieee80211_priv(dev);
 	int ret;
+
 	down(&priv->wx_sem);
 
 	ret = ieee80211_wx_set_essid(priv->ieee80211, a, wrqu, b);
@@ -432,6 +437,7 @@ static int r8192_wx_get_name(struct net_device *dev,
 			     union iwreq_data *wrqu, char *extra)
 {
 	struct r8192_priv *priv = ieee80211_priv(dev);
+
 	return ieee80211_wx_get_name(priv->ieee80211, info, wrqu, extra);
 }
 
@@ -700,6 +706,7 @@ static int r8192_wx_get_sens(struct net_device *dev,
 				union iwreq_data *wrqu, char *extra)
 {
 	struct r8192_priv *priv = ieee80211_priv(dev);
+
 	if (priv->rf_set_sens == NULL)
 		return -1; /* we have not this support for this radio */
 	wrqu->sens.value = priv->sens;
@@ -713,8 +720,8 @@ static int r8192_wx_set_sens(struct net_device *dev,
 {
 
 	struct r8192_priv *priv = ieee80211_priv(dev);
-
 	short err = 0;
+
 	down(&priv->wx_sem);
 	if (priv->rf_set_sens == NULL) {
 		err = -1; /* we have not this support for this radio */
@@ -813,6 +820,7 @@ static int r8192_wx_set_auth(struct net_device *dev,
 {
 	int ret = 0;
 	struct r8192_priv *priv = ieee80211_priv(dev);
+
 	down(&priv->wx_sem);
 	ret = ieee80211_wx_set_auth(priv->ieee80211, info, &(data->param), extra);
 	up(&priv->wx_sem);
@@ -826,6 +834,7 @@ static int r8192_wx_set_mlme(struct net_device *dev,
 
 	int ret = 0;
 	struct r8192_priv *priv = ieee80211_priv(dev);
+
 	down(&priv->wx_sem);
 	ret = ieee80211_wx_set_mlme(priv->ieee80211, info, wrqu, extra);
 
@@ -839,6 +848,7 @@ static int r8192_wx_set_gen_ie(struct net_device *dev,
 {
 	int ret = 0;
 	struct r8192_priv *priv = ieee80211_priv(dev);
+
 	down(&priv->wx_sem);
 	ret = ieee80211_wx_set_gen_ie(priv->ieee80211, extra, data->data.length);
 	up(&priv->wx_sem);
@@ -956,6 +966,7 @@ struct iw_statistics *r8192_get_wireless_stats(struct net_device *dev)
 	int tmp_level = 0;
 	int tmp_qual = 0;
 	int tmp_noise = 0;
+
 	if (ieee->state < IEEE80211_LINKED) {
 		wstats->qual.qual = 0;
 		wstats->qual.level = 0;
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/3 Staging: rtl8192u: r8192U_wx.c Fixed some more code-style warnings about spaces

Fixed the following warnings issued by checkpatch.pl

WARNING: please, no space before tabs

---
 drivers/staging/rtl8192u/r8192U_wx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192u/r8192U_wx.c +2 -2
index d061797..cccc88b 100644
@@ -299,7 +299,7 @@ static int rtl8180_wx_get_range(struct net_device *dev,
 	/* range->retry_capa; */	/* What retry options are supported */
 	/* range->retry_flags; */	/* How to decode max/min retry limit */
 	/* range->r_time_flags; */	/* How to decode max/min retry life */
-	/* range->min_retry; */ 	/* Minimal number of retries */
+	/* range->min_retry; */		/* Minimal number of retries */
 	/* range->max_retry; */		/* Maximal number of retries */
 	/* range->min_r_time; */	/* Minimal retry lifetime */
 	/* range->max_r_time; */	/* Maximal retry lifetime */
@@ -802,7 +802,7 @@ static int r8192_wx_set_enc_ext(struct net_device *dev,
 					alg,	/* KeyType */
 					(u8 *)ieee->ap_mac_addr,/* MacAddr */
 					0,			/* DefaultKey */
-					key);           	/* KeyContent */
+					key);			/* KeyContent */
 		}
 
 
Signature · 1 line
1.9.1
#2 lore raw

PATCH 3/3 Staging: rtl8192u: r8192U_wx.c Fixed a code-style error about trailing whitespace

In reply to Chaitanya Hazarey

Fixed the following error reported by running checkpatch.pl

ERROR: trailing whitespace

---
 drivers/staging/rtl8192u/r8192U_wx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192u/r8192U_wx.c +1 -1
index cccc88b..6808e87 100644
@@ -952,7 +952,7 @@ static const struct iw_priv_args r8192_private_args[] = {
 
 
 static iw_handler r8192_private_handler[] = {
-	r8192_wx_set_crcmon, 
+	r8192_wx_set_crcmon,
 	r8192_wx_set_scan_type,
 	r8192_wx_set_rawtx,
 	r8192_wx_force_reset,
Signature · 1 line
1.9.1