Commit af090549 authored by Joseph Bisch's avatar Joseph Bisch Committed by Greg Kroah-Hartman

staging: rtl8712: Remove unnecessary ret variable

Since the variable ret is set at the beginning of the function and
never changes its value, we can just return the value it was set to.

Found using coccinelle with misc/returnvar.cocci.
Signed-off-by: default avatarJoseph Bisch <joseph.bisch@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f7099ad7
...@@ -269,7 +269,6 @@ void r8712_stop_drv_timers(struct _adapter *padapter) ...@@ -269,7 +269,6 @@ void r8712_stop_drv_timers(struct _adapter *padapter)
static u8 init_default_value(struct _adapter *padapter) static u8 init_default_value(struct _adapter *padapter)
{ {
u8 ret = _SUCCESS;
struct registry_priv *pregistrypriv = &padapter->registrypriv; struct registry_priv *pregistrypriv = &padapter->registrypriv;
struct xmit_priv *pxmitpriv = &padapter->xmitpriv; struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv; struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
...@@ -302,7 +301,7 @@ static u8 init_default_value(struct _adapter *padapter) ...@@ -302,7 +301,7 @@ static u8 init_default_value(struct _adapter *padapter)
r8712_init_registrypriv_dev_network(padapter); r8712_init_registrypriv_dev_network(padapter);
r8712_update_registrypriv_dev_network(padapter); r8712_update_registrypriv_dev_network(padapter);
/*misc.*/ /*misc.*/
return ret; return _SUCCESS;
} }
u8 r8712_init_drv_sw(struct _adapter *padapter) u8 r8712_init_drv_sw(struct _adapter *padapter)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment