Skip to contentSkip to conversation

Staging: rtl8188eu: checkpatch.pl warnings removed

PATCH In review [email protected] 2 participants 2 messages Sep 9, 2013 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8188eu: checkpatch.pl warnings removed

From: Faris de Haan <[email protected]>

Fixed some of the coding style issues reported by checkpatch.pl

---
 drivers/staging/rtl8188eu/core/rtw_sta_mgt.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/staging/rtl8188eu/core/rtw_sta_mgt.c +3 -4
index c2977be..cd3c9a7 100644
@@ -267,9 +267,8 @@ _func_enter_;
 
 		rtw_mfree_sta_priv_lock(pstapriv);
 
-		if (pstapriv->pallocated_stainfo_buf) {
+		if (pstapriv->pallocated_stainfo_buf)
 			rtw_vmfree(pstapriv->pallocated_stainfo_buf, sizeof(struct sta_info)*NUM_STA+4);
-		}
 	}
 
 _func_exit_;
@@ -315,7 +314,7 @@ _func_enter_;
 
 		rtw_list_insert_tail(&psta->hash_list, phash_list);
 
-		pstapriv->asoc_sta_count++ ;
+		pstapriv->asoc_sta_count++;
 
 		_exit_critical_bh(&(pstapriv->sta_hash_lock), &irql2);
 
@@ -419,7 +418,7 @@ _func_enter_;
 	_cancel_timer_ex(&psta->addba_retry_timer);
 
 	/* for A-MPDU Rx reordering buffer control, cancel reordering_ctrl_timer */
-	for (i = 0; i < 16 ; i++) {
+	for (i = 0; i < 16; i++) {
 		unsigned long irql;
 		struct list_head *phead, *plist;
 		union recv_frame *prframe;
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 35 lines · On 09/09/2013 10:34 AM, [email protected] wrote:

From: Faris de Haan <[email protected]>

Fixed some of the coding style issues reported by checkpatch.pl

---
  drivers/staging/rtl8188eu/core/rtw_sta_mgt.c |    7 +++----
  1 file changed, 3 insertions(+), 4 deletions(-)
drivers/staging/rtl8188eu/core/rtw_sta_mgt.c +2 -3
index c2977be..cd3c9a7 100644
@@ -267,9 +267,8 @@ _func_enter_;
 
  		rtw_mfree_sta_priv_lock(pstapriv);
 
-		if (pstapriv->pallocated_stainfo_buf) {
+		if (pstapriv->pallocated_stainfo_buf)
  			rtw_vmfree(pstapriv->pallocated_stainfo_buf, sizeof(struct sta_info)*NUM_STA+4);
-		}
  	}
 
  _func_exit_;
@@ -315,7 +314,7 @@ _func_enter_;
 
  		rtw_list_insert_tail(&psta->hash_list, phash_list);
 
-		pstapriv->asoc_sta_count++ ;
+		pstapriv->asoc_sta_count++;
 
  		_exit_critical_bh(&(pstapriv->sta_hash_lock), &irql2);
 

drivers/staging/rtl8188eu/core/rtw_sta_mgt.c _func_enter_; · line 424

Quoted 8 lines
drivers/staging/rtl8188eu/core/rtw_sta_mgt.c +1 -1
@@ -419,7 +418,7 @@ _func_enter_;
  	_cancel_timer_ex(&psta->addba_retry_timer);
 
  	/* for A-MPDU Rx reordering buffer control, cancel reordering_ctrl_timer */
-	for (i = 0; i < 16 ; i++) {
+	for (i = 0; i < 16; i++) {
  		unsigned long irql;
  		struct list_head *phead, *plist;
  		union recv_frame *prframe;

Thanks,

Larry