All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/3] Staging: rtl8188eu: Remove unneeded return statement
@ 2015-03-07 18:00 Somya Anand
  2015-03-07 18:00 ` [PATCH v3 2/3] staging: rtl8188eu: Remove unneeded parentheses Somya Anand
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Somya Anand @ 2015-03-07 18:00 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: Somya Anand

This patch removes unnecessary return statement from a void
function and hence make it more compatible.

This issue is identified by checkpatch.pl

Signed-off-by: Somya Anand <somyaanand214@gmail.com>
---
 drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c
index dac4246..074f48a 100644
--- a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c
@@ -650,8 +650,6 @@ void WMMOnAssocRsp(struct adapter *padapter)
 		pxmitpriv->wmm_para_seq[i] = inx[i];
 		DBG_88E("wmm_para_seq(%d): %d\n", i, pxmitpriv->wmm_para_seq[i]);
 	}
-
-	return;
 }
 
 static void bwmode_update_check(struct adapter *padapter, struct ndis_802_11_var_ie *pIE)
@@ -779,7 +777,6 @@ void HT_caps_handler(struct adapter *padapter, struct ndis_802_11_var_ie *pIE)
 		else
 			pmlmeinfo->HT_caps.u.HT_cap_element.MCS_rate[i] &= MCS_rate_2R[i];
 	}
-	return;
 }
 
 void HT_info_handler(struct adapter *padapter, struct ndis_802_11_var_ie *pIE)
@@ -800,7 +797,6 @@ void HT_info_handler(struct adapter *padapter, struct ndis_802_11_var_ie *pIE)
 
 	pmlmeinfo->HT_info_enable = 1;
 	memcpy(&(pmlmeinfo->HT_info), pIE->data, pIE->Length);
-	return;
 }
 
 void HTOnAssocRsp(struct adapter *padapter)
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-09 12:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-07 18:00 [PATCH v3 1/3] Staging: rtl8188eu: Remove unneeded return statement Somya Anand
2015-03-07 18:00 ` [PATCH v3 2/3] staging: rtl8188eu: Remove unneeded parentheses Somya Anand
2015-03-07 18:00 ` [PATCH v3 3/3] Staging: rtl8188eu: Remove redundant local variable Somya Anand
2015-03-09 12:20   ` [Outreachy kernel] " Greg KH
2015-03-09 12:19 ` [Outreachy kernel] [PATCH v3 1/3] Staging: rtl8188eu: Remove unneeded return statement Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.