All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jes Sorensen <Jes.Sorensen@redhat.com>
To: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Cc: Larry Finger <Larry.Finger@lwfinger.net>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: rtl8723au: core: rtw_mlme_ext: Removed variables that is never used
Date: Sun, 01 Feb 2015 17:58:03 -0500	[thread overview]
Message-ID: <wrfjoapd1bpg.fsf@redhat.com> (raw)
In-Reply-To: <1422716412-3960-1-git-send-email-rickard_strandqvist@spectrumdigital.se> (Rickard Strandqvist's message of "Sat, 31 Jan 2015 16:00:12 +0100")

Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> writes:
> Variable was assigned a value that was never used.
> I have also removed all the code that thereby serves no purpose.
>
> This was found using a static code analysis program called cppcheck
>
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
> ---
>  drivers/staging/rtl8723au/core/rtw_mlme_ext.c |    7 +------
>  1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
> index 0e0f73c..7c60fed 100644
> --- a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
> +++ b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
> @@ -2515,7 +2515,6 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da,
>  	unsigned char *mac, *bssid;
>  	struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
>  #ifdef CONFIG_8723AU_AP_MODE
> -	const u8 *pwps_ie;
>  	u8 *ssid_ie;
>  	int ssid_ielen;
>  	int ssid_ielen_diff;
> @@ -2576,7 +2575,7 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da,
>  
>  #ifdef CONFIG_8723AU_AP_MODE
>  	if ((pmlmeinfo->state & 0x03) == MSR_AP) {
> -		pwps_ie = cfg80211_find_vendor_ie(WLAN_OUI_MICROSOFT,
> +		cfg80211_find_vendor_ie(WLAN_OUI_MICROSOFT,
>  						  WLAN_OUI_TYPE_MICROSOFT_WPS,
>  						  cur_network->IEs,
>  						  cur_network->IELength);

If you want to modify this, you need to fix up the formatting to go with
it.

NACK

Jes

> @@ -6196,13 +6195,9 @@ int set_chplan_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf)
>  
>  int led_blink_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf)
>  {
> -	struct LedBlink_param *ledBlink_param;
> -
>  	if (!pbuf)
>  		return H2C_PARAMETERS_ERROR;
>  
> -	ledBlink_param = (struct LedBlink_param *)pbuf;
> -
>  	return H2C_SUCCESS;
>  }

  reply	other threads:[~2015-02-01 22:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-31 15:00 [PATCH] staging: rtl8723au: core: rtw_mlme_ext: Removed variables that is never used Rickard Strandqvist
2015-02-01 22:58 ` Jes Sorensen [this message]
2015-02-01 23:16   ` Rickard Strandqvist

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=wrfjoapd1bpg.fsf@redhat.com \
    --to=jes.sorensen@redhat.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=rickard_strandqvist@spectrumdigital.se \
    /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.