mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 08:02:59 -04:00
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: Nishka Dasgupta <nishkadg.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5d32630f17
commit
1f22b8f1bd
@@ -1686,7 +1686,7 @@ static int rtw_wx_get_enc(struct net_device *dev,
|
||||
struct iw_request_info *info,
|
||||
union iwreq_data *wrqu, char *keybuf)
|
||||
{
|
||||
uint key, ret = 0;
|
||||
uint key;
|
||||
struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev);
|
||||
struct iw_point *erq = &(wrqu->encoding);
|
||||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
||||
@@ -1744,7 +1744,7 @@ static int rtw_wx_get_enc(struct net_device *dev,
|
||||
break;
|
||||
}
|
||||
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int rtw_wx_get_power(struct net_device *dev,
|
||||
|
||||
Reference in New Issue
Block a user