Remove return statement from void function
cover Remove return statement from void function
Remove all the return statements from void function in staging/rtl8188eu driver. The purpose of the patches is to clean up the code.
Georgiana Rodica Chelu (2):
staging: rtl8188eu: core: rtw_mlme: Remove return statement from void
function
staging: rtl8188eu: core: rtw_security: Remove return statement from
void function
drivers/staging/rtl8188eu/core/rtw_mlme.c | 2 -- drivers/staging/rtl8188eu/core/rtw_security.c | 1 - 2 files changed, 3 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/2 staging: rtl8188eu: core: rtw_mlme: Remove return statement from void function
Remove the return statement from the end of a void function to clean up the code.
Issue found by checkpatch.pl script.
--- drivers/staging/rtl8188eu/core/rtw_mlme.c | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/rtl8188eu/core/rtw_mlme.c +0 -2
@@ -259,7 +259,6 @@ void rtw_generate_random_ibss(u8 *pibss) pibss[3 ] = (u8)(curtime &0xff );/* p[0]; */ pibss[4 ] = (u8)((curtime>>8 ) &0xff );/* p[1]; */ pibss[5 ] = (u8)((curtime>>16 ) &0xff );/* p[2]; */ -return ; }u8 *rtw_get_capability_from_ie (u8 *ie)
@@ -557,7 +556,6 @@ static int rtw_is_desired_network(struct adapter *adapter, struct wlan_network *void rtw_atimdone_event_callback (struct adapter *adapter,u8 *pbuf) {RT_TRACE (_module_rtl871x_mlme_c_, _drv_err_, ("receive atimdone_evet\n" )); -return ; }
Signature · 1 line
2.7.4
PATCH 2/2 staging: rtl8188eu: core: rtw_security: Remove return statement from void function
In reply to Georgiana Rodica CheluRemove the return statement from the end of a void function to clean up the code.
Issue found by checkpatch.pl script.
--- drivers/staging/rtl8188eu/core/rtw_security.c | 1 - 1 file changed, 1 deletion(-)
drivers/staging/rtl8188eu/core/rtw_security.c +0 -1
@@ -233,7 +233,6 @@ void rtw_wep_decrypt(struct adapter *padapter, u8 *precvframe) &crc, &payload[length-4])); } } -return ; }/* 3 ===== TKIP related ===== */
Signature · 1 line
2.7.4