mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
staging: rtl8723au: core: Remove uneeded return variable
This patch removes uneeded return variables, using only
'return _SUCCESS' instead.
It fixes the following warning detected by coccinelle:
Unneeded variable.
It was done using the following semantic patch:
@@
identifier ret;
type T;
expression e;
@@
-T ret = e;
... when != ret
when strict
-return ret;
+return e;
Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
35a0072771
commit
038b70395a
3 changed files with 3 additions and 7 deletions
|
|
@ -50,7 +50,6 @@ static void rtw_init_mlme_timer(struct rtw_adapter *padapter)
|
|||
int rtw_init_mlme_priv23a(struct rtw_adapter *padapter)
|
||||
{
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
int res = _SUCCESS;
|
||||
|
||||
pmlmepriv->nic_hdl = padapter;
|
||||
|
||||
|
|
@ -68,7 +67,7 @@ int rtw_init_mlme_priv23a(struct rtw_adapter *padapter)
|
|||
rtw_clear_scan_deny(padapter);
|
||||
|
||||
rtw_init_mlme_timer(padapter);
|
||||
return res;
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_8723AU_AP_MODE
|
||||
|
|
|
|||
|
|
@ -567,7 +567,6 @@ static u8 init_channel_set(struct rtw_adapter *padapter, u8 cplan,
|
|||
|
||||
int init_mlme_ext_priv23a(struct rtw_adapter *padapter)
|
||||
{
|
||||
int res = _SUCCESS;
|
||||
struct registry_priv *pregistrypriv = &padapter->registrypriv;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
|
|
@ -594,7 +593,7 @@ int init_mlme_ext_priv23a(struct rtw_adapter *padapter)
|
|||
pmlmeext->mlmeext_init = true;
|
||||
|
||||
pmlmeext->active_keep_alive_check = true;
|
||||
return res;
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
void free_mlme_ext_priv23a (struct mlme_ext_priv *pmlmeext)
|
||||
|
|
|
|||
|
|
@ -1554,8 +1554,6 @@ static int wlanhdr_to_ethhdr (struct recv_frame *precvframe)
|
|||
u16 eth_type, len, hdrlen;
|
||||
u8 bsnaphdr;
|
||||
u8 *psnap;
|
||||
|
||||
int ret = _SUCCESS;
|
||||
struct rtw_adapter *adapter = precvframe->adapter;
|
||||
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
|
||||
|
||||
|
|
@ -1616,7 +1614,7 @@ static int wlanhdr_to_ethhdr (struct recv_frame *precvframe)
|
|||
}
|
||||
|
||||
|
||||
return ret;
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
/* perform defrag */
|
||||
|
|
|
|||
Loading…
Reference in a new issue