From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Cc: Anirudh Rayabharam <anirudh.rayabharam@gmail.com>,
Kimberly Brown <kimbrownkd@gmail.com>,
Nishka Dasgupta <nishka.dasgupta@yahoo.com>,
Murray McAllister <murray.mcallister@insomniasec.com>,
Mamta Shukla <mamtashukla555@gmail.com>,
Hardik Singh Rathore <hardiksingh.k@gmail.com>,
Larry Finger <Larry.Finger@lwfinger.net>,
Arnd Bergmann <arnd@arndb.de>,
Quytelda Kahja <quytelda@tamalin.org>,
Omer Efrat <omer.efrat@tandemg.com>,
Michael Straube <straube.linux@gmail.com>,
Emanuel Bennici <benniciemanuel78@gmail.com>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
Jia-Ju Bai <baijiaju1990@gmail.com>,
Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>,
Wen Yang <wen.yang99@zte.com.cn>,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [Patch v2] staging: rtl8723bs: core: rtw_ap: fix Unneeded variable: "ret". Return "0
Date: Wed, 22 May 2019 14:32:07 +0200 [thread overview]
Message-ID: <20190522123206.GB24298@kroah.com> (raw)
In-Reply-To: <20190521190032.GA7486@hari-Inspiron-1545>
On Wed, May 22, 2019 at 12:30:33AM +0530, Hariprasad Kelam wrote:
> Function "rtw_sta_flush" always returns 0 value.
> So change return type of rtw_sta_flush from int to void.
>
> Same thing applies for rtw_hostapd_sta_flush
>
> Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
> ------
> Changes v2 -
> change return type of rtw_sta_flush
>
> -----
> drivers/staging/rtl8723bs/core/rtw_ap.c | 7 ++-----
> drivers/staging/rtl8723bs/include/rtw_ap.h | 2 +-
> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 4 ++--
> drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 7 +++----
> 4 files changed, 8 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c
> index bc02306..19418ea 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_ap.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_ap.c
> @@ -2189,10 +2189,9 @@ u8 ap_free_sta(
> return beacon_updated;
> }
>
> -int rtw_sta_flush(struct adapter *padapter)
> +void rtw_sta_flush(struct adapter *padapter)
> {
> struct list_head *phead, *plist;
> - int ret = 0;
> struct sta_info *psta = NULL;
> struct sta_priv *pstapriv = &padapter->stapriv;
> struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
> @@ -2202,7 +2201,7 @@ int rtw_sta_flush(struct adapter *padapter)
> DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(padapter->pnetdev));
>
> if ((pmlmeinfo->state&0x03) != WIFI_FW_AP_STATE)
> - return ret;
> + return ;
Odd use of a ' ' character here :(
prev parent reply other threads:[~2019-05-22 12:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-21 19:00 [Patch v2] staging: rtl8723bs: core: rtw_ap: fix Unneeded variable: "ret". Return "0 Hariprasad Kelam
2019-05-22 12:32 ` Greg Kroah-Hartman [this message]
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=20190522123206.GB24298@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=Larry.Finger@lwfinger.net \
--cc=andy.shevchenko@gmail.com \
--cc=anirudh.rayabharam@gmail.com \
--cc=arnd@arndb.de \
--cc=baijiaju1990@gmail.com \
--cc=benniciemanuel78@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=hardiksingh.k@gmail.com \
--cc=hariprasad.kelam@gmail.com \
--cc=kimbrownkd@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mamtashukla555@gmail.com \
--cc=murray.mcallister@insomniasec.com \
--cc=nishka.dasgupta@yahoo.com \
--cc=omer.efrat@tandemg.com \
--cc=payal.s.kshirsagar.98@gmail.com \
--cc=quytelda@tamalin.org \
--cc=straube.linux@gmail.com \
--cc=wen.yang99@zte.com.cn \
/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