linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Abdun Nihaal <abdun.nihaal@gmail.com>
To: gregkh@linuxfoundation.org
Cc: Abdun Nihaal <abdun.nihaal@gmail.com>,
	Larry.Finger@lwfinger.net, phil@philpotter.co.uk,
	straube.linux@gmail.com, martin@kaiser.cx,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH v4 17/23] staging: r8188eu: convert rtw_p2p_get_peer_devaddr_by_invitation to return void
Date: Sat, 29 Jan 2022 21:58:09 +0530	[thread overview]
Message-ID: <06e2dce5de14c1abe457a40ec9ca597a06095437.1643466748.git.abdun.nihaal@gmail.com> (raw)
In-Reply-To: <cover.1643466748.git.abdun.nihaal@gmail.com>

rtw_p2p_get_peer_devaddr_by_invitation 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>
---
 drivers/staging/r8188eu/os_dep/ioctl_linux.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/r8188eu/os_dep/ioctl_linux.c b/drivers/staging/r8188eu/os_dep/ioctl_linux.c
index dfd19a649803..9ee647de5ba7 100644
--- a/drivers/staging/r8188eu/os_dep/ioctl_linux.c
+++ b/drivers/staging/r8188eu/os_dep/ioctl_linux.c
@@ -2547,12 +2547,12 @@ static void rtw_p2p_get_peer_devaddr(struct net_device *dev,
 	wrqu->data.length = strlen(extra);
 }
 
-static int rtw_p2p_get_peer_devaddr_by_invitation(struct net_device *dev,
-			       struct iw_request_info *info,
-			       union iwreq_data *wrqu, char *extra)
+static void rtw_p2p_get_peer_devaddr_by_invitation(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;
 
@@ -2562,7 +2562,6 @@ static int rtw_p2p_get_peer_devaddr_by_invitation(struct net_device *dev,
 	sprintf(extra, "\nMAC %pM",
 		pwdinfo->p2p_peer_device_addr);
 	wrqu->data.length = strlen(extra);
-	return ret;
 }
 
 static int rtw_p2p_get_groupid(struct net_device *dev,
-- 
2.34.1


  parent reply	other threads:[~2022-01-29 16:33 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-29 16:04 [PATCH v4 00/23] staging: r8188eu: remove unneeded ret variables Abdun Nihaal
2022-01-29 16:04 ` [PATCH v4 01/23] staging: r8188eu: remove unneeded variable in rtw_wx_get_essid Abdun Nihaal
2022-01-29 16:04 ` [PATCH v4 02/23] staging: r8188eu: remove unneeded variable in rtw_wx_get_enc Abdun Nihaal
2022-01-29 16:27 ` [PATCH v4 03/23] staging: r8188eu: remove unneeded variable in rtw_p2p_get Abdun Nihaal
2022-01-29 16:27 ` [PATCH v4 04/23] staging: r8188eu: remove unneeded variable in rtw_p2p_get_wps_configmethod Abdun Nihaal
2022-01-29 16:27 ` [PATCH v4 05/23] staging: r8188eu: remove unneeded variable in rtw_p2p_get_go_device_address Abdun Nihaal
2022-01-29 16:27 ` [PATCH v4 06/23] staging: r8188eu: remove unneeded variable in rtw_p2p_get_device_type Abdun Nihaal
2022-01-29 16:27 ` [PATCH v4 07/23] staging: r8188eu: remove unneeded variable in rtw_p2p_get_device_name Abdun Nihaal
2022-01-29 16:28 ` [PATCH v4 08/23] staging: r8188eu: remove unneeded variable in rtw_p2p_get_invitation_procedure Abdun Nihaal
2022-01-29 16:28 ` [PATCH v4 09/23] staging: r8188eu: propagate error code in rtw_p2p_get2 Abdun Nihaal
2022-01-29 16:28 ` [PATCH v4 10/23] staging: r8188eu: convert rtw_p2p_set_go_nego_ssid to return void Abdun Nihaal
2022-01-29 16:28 ` [PATCH v4 11/23] staging: r8188eu: convert rtw_p2p_setDN " Abdun Nihaal
2022-01-29 16:28 ` [PATCH v4 12/23] staging: r8188eu: convert rtw_p2p_get_status " Abdun Nihaal
2022-01-29 16:28 ` [PATCH v4 13/23] staging: r8188eu: convert rtw_p2p_get_req_cm " Abdun Nihaal
2022-01-29 16:28 ` [PATCH v4 14/23] staging: r8188eu: convert rtw_p2p_get_role " Abdun Nihaal
2022-01-29 16:28 ` [PATCH v4 15/23] staging: r8188eu: convert rtw_p2p_get_peer_ifaddr " Abdun Nihaal
2022-01-29 16:28 ` [PATCH v4 16/23] staging: r8188eu: convert rtw_p2p_get_peer_devaddr " Abdun Nihaal
2022-01-29 16:28 ` Abdun Nihaal [this message]
2022-01-29 16:28 ` [PATCH v4 18/23] staging: r8188eu: convert rtw_p2p_get_groupid " Abdun Nihaal
2022-01-29 16:28 ` [PATCH v4 19/23] staging: r8188eu: convert rtw_p2p_get_op_ch " Abdun Nihaal
2022-01-29 16:28 ` [PATCH v4 20/23] staging: r8188eu: convert rtw_p2p_invite_req " Abdun Nihaal
2022-01-29 16:28 ` [PATCH v4 21/23] staging: r8188eu: convert rtw_p2p_set_persistent " Abdun Nihaal
2022-01-29 16:28 ` [PATCH v4 22/23] staging: r8188eu: convert rtw_p2p_prov_disc " Abdun Nihaal
2022-01-29 16:28 ` [PATCH v4 23/23] staging: r8188eu: convert rtw_p2p_got_wpsinfo " Abdun Nihaal
2022-01-31 13:03 ` [PATCH v4 00/23] staging: r8188eu: remove unneeded ret variables Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=06e2dce5de14c1abe457a40ec9ca597a06095437.1643466748.git.abdun.nihaal@gmail.com \
    --to=abdun.nihaal@gmail.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=martin@kaiser.cx \
    --cc=phil@philpotter.co.uk \
    --cc=straube.linux@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).