mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02: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:
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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user