All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@lip6.fr>
To: Bhumika Goyal <bhumirks@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] Staging: rtl8723au: Remove unnecessary variable
Date: Tue, 9 Feb 2016 22:56:26 +0100 (CET)	[thread overview]
Message-ID: <alpine.DEB.2.02.1602092255320.2066@localhost6.localdomain6> (raw)
In-Reply-To: <1455044948-1425-1-git-send-email-bhumirks@gmail.com>

On Wed, 10 Feb 2016, Bhumika Goyal wrote:

> Variable ret is initially made 0 and it's value remains unchanged in
> function. It is used only as return value.So remove ret and replace
> return ret with return 0.

"it's" -> "its".  And please always put a space after a period, when there 
is another following sentence.

Otherwise, the change looks fine.

Acked-by: Julia Lawall <julia.lawall@lip6.fr>

> 
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
> ---
>  drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c
> index 0ae2180..b10fdce 100644
> --- a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c
> +++ b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c
> @@ -242,7 +242,6 @@ rtw_cfg80211_default_mgmt_stypes[NUM_NL80211_IFTYPES] = {
>  static int rtw_cfg80211_inform_bss(struct rtw_adapter *padapter,
>  				   struct wlan_network *pnetwork)
>  {
> -	int ret = 0;
>  	struct ieee80211_channel *notify_channel;
>  	struct cfg80211_bss *bss;
>  	u16 channel;
> @@ -295,7 +294,7 @@ static int rtw_cfg80211_inform_bss(struct rtw_adapter *padapter,
>  
>  	cfg80211_put_bss(wiphy, bss);
>  
> -	return ret;
> +	return 0;
>  }
>  
>  void rtw_cfg80211_indicate_connect(struct rtw_adapter *padapter)
> @@ -1300,7 +1299,6 @@ void rtw_cfg80211_surveydone_event_callback(struct rtw_adapter *padapter)
>  static int rtw_cfg80211_set_probe_req_wpsp2pie(struct rtw_adapter *padapter,
>  					       char *buf, int len)
>  {
> -	int ret = 0;
>  	const u8 *wps_ie;
>  	struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
>  
> @@ -1330,7 +1328,7 @@ static int rtw_cfg80211_set_probe_req_wpsp2pie(struct rtw_adapter *padapter,
>  		}
>  	}
>  
> -	return ret;
> +	return 0;
>  }
>  
>  static int cfg80211_rtw_scan(struct wiphy *wiphy,
> -- 
> 1.9.1
> 
> -- 
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1455044948-1425-1-git-send-email-bhumirks%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
> 


  reply	other threads:[~2016-02-09 21:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-09 19:09 [PATCH] Staging: rtl8723au: Remove unnecessary variable Bhumika Goyal
2016-02-09 21:56 ` Julia Lawall [this message]
2016-02-10  9:18   ` [Outreachy kernel] " Bhumika Goyal
2016-02-10  9:19     ` Julia Lawall

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=alpine.DEB.2.02.1602092255320.2066@localhost6.localdomain6 \
    --to=julia.lawall@lip6.fr \
    --cc=bhumirks@gmail.com \
    --cc=outreachy-kernel@googlegroups.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.