staging: r8188eu: convert rtw_p2p_got_wpsinfo to return void
authorAbdun Nihaal <abdun.nihaal@gmail.com>
Sat, 29 Jan 2022 16:28:15 +0000 (21:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Jan 2022 13:02:48 +0000 (14:02 +0100)
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>
drivers/staging/r8188eu/os_dep/ioctl_linux.c

index 1af8b2c068b8b723174c3121d7fcca5b7dd76424..c54ec5602ddf08d8ea1b803153d714015f3f499c 100644 (file)
@@ -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,