mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
staging: r8188eu: convert rtw_p2p_setDN to return void
rtw_p2p_setDN always returns 0 and it's return value is not used. Convert it to return void. Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com> Link: https://lore.kernel.org/r/fe4a9f0176c96ec327342c793de1f55c89d16768.1643466748.git.abdun.nihaal@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
94f2746186
commit
712eed5d09
@@ -2453,11 +2453,10 @@ static int rtw_p2p_profilefound(struct net_device *dev,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int rtw_p2p_setDN(struct net_device *dev,
|
||||
struct iw_request_info *info,
|
||||
union iwreq_data *wrqu, char *extra)
|
||||
static void rtw_p2p_setDN(struct net_device *dev,
|
||||
struct iw_request_info *info,
|
||||
union iwreq_data *wrqu, char *extra)
|
||||
{
|
||||
int ret = 0;
|
||||
struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev);
|
||||
struct wifidirect_info *pwdinfo = &padapter->wdinfo;
|
||||
|
||||
@@ -2465,8 +2464,6 @@ static int rtw_p2p_setDN(struct net_device *dev,
|
||||
memset(pwdinfo->device_name, 0x00, WPS_MAX_DEVICE_NAME_LEN);
|
||||
memcpy(pwdinfo->device_name, extra, wrqu->data.length - 1);
|
||||
pwdinfo->device_name_len = wrqu->data.length - 1;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int rtw_p2p_get_status(struct net_device *dev,
|
||||
|
||||
Reference in New Issue
Block a user