mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
staging: r8188eu: convert rtw_p2p_got_wpsinfo to return void
rtw_p2p_got_wpsinfo 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/f63e236e3a338789265172990fea049216115105.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
7ce2b888ef
commit
1f6361d771
@@ -3301,11 +3301,10 @@ static void rtw_p2p_prov_disc(struct net_device *dev,
|
||||
/* This function is used to inform the driver the user had specified the pin code value or pbc */
|
||||
/* to application. */
|
||||
|
||||
static int rtw_p2p_got_wpsinfo(struct net_device *dev,
|
||||
struct iw_request_info *info,
|
||||
union iwreq_data *wrqu, char *extra)
|
||||
static void rtw_p2p_got_wpsinfo(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;
|
||||
|
||||
@@ -3326,7 +3325,6 @@ static int rtw_p2p_got_wpsinfo(struct net_device *dev,
|
||||
pwdinfo->ui_got_wps_info = P2P_GOT_WPSINFO_PBC;
|
||||
else
|
||||
pwdinfo->ui_got_wps_info = P2P_NO_WPSINFO;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int rtw_p2p_set(struct net_device *dev,
|
||||
|
||||
Reference in New Issue
Block a user