Commit 1f22b8f1 authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

staging: rtl8188eu: os_dep: Remove return variable

Remove return variable as its value is not altered between
initialisation and return.
Issue found with Coccinelle.
Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5d32630f
...@@ -1686,7 +1686,7 @@ static int rtw_wx_get_enc(struct net_device *dev, ...@@ -1686,7 +1686,7 @@ static int rtw_wx_get_enc(struct net_device *dev,
struct iw_request_info *info, struct iw_request_info *info,
union iwreq_data *wrqu, char *keybuf) union iwreq_data *wrqu, char *keybuf)
{ {
uint key, ret = 0; uint key;
struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev); struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev);
struct iw_point *erq = &(wrqu->encoding); struct iw_point *erq = &(wrqu->encoding);
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
...@@ -1744,7 +1744,7 @@ static int rtw_wx_get_enc(struct net_device *dev, ...@@ -1744,7 +1744,7 @@ static int rtw_wx_get_enc(struct net_device *dev,
break; break;
} }
return ret; return 0;
} }
static int rtw_wx_get_power(struct net_device *dev, static int rtw_wx_get_power(struct net_device *dev,
......
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