From: Greg KH <gregkh@linuxfoundation.org>
To: Sergei Krainov <sergei.krainov.lkd@gmail.com>
Cc: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] staging: rtl8712: remove unused variable from rtl871x_mlme.c
Date: Thu, 8 Apr 2021 08:23:43 +0200 [thread overview]
Message-ID: <YG6hb9YoPyrtEQdc@kroah.com> (raw)
In-Reply-To: <20210407193214.GA284402@test-VirtualBox>
On Wed, Apr 07, 2021 at 09:32:14PM +0200, Sergei Krainov wrote:
> Remove unused variable from rtl871x_mlme.c
>
> Signed-off-by: Sergei Krainov <sergei.krainov.lkd@gmail.com>
> ---
> drivers/staging/rtl8712/rtl871x_mlme.c | 9 +--------
> 1 file changed, 1 insertion(+), 8 deletions(-)
>
> diff --git a/drivers/staging/rtl8712/rtl871x_mlme.c b/drivers/staging/rtl8712/rtl871x_mlme.c
> index 8a97307fbbd6..4f41e321ea63 100644
> --- a/drivers/staging/rtl8712/rtl871x_mlme.c
> +++ b/drivers/staging/rtl8712/rtl871x_mlme.c
> @@ -656,7 +656,7 @@ void r8712_joinbss_event_callback(struct _adapter *adapter, u8 *pbuf)
> struct sta_priv *pstapriv = &adapter->stapriv;
> struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
> struct wlan_network *cur_network = &pmlmepriv->cur_network;
> - struct wlan_network *pcur_wlan = NULL, *ptarget_wlan = NULL;
> + struct wlan_network *ptarget_wlan = NULL;
> unsigned int the_same_macaddr = false;
> struct wlan_network *pnetwork;
>
> @@ -721,13 +721,6 @@ void r8712_joinbss_event_callback(struct _adapter *adapter, u8 *pbuf)
> scanned_queue,
> cur_network->network.MacAddress);
> } else {
> - pcur_wlan =
> - r8712_find_network(&pmlmepriv->
> - scanned_queue,
> - cur_network->network.MacAddress);
> - if (pcur_wlan)
> - pcur_wlan->fixed = false;
> -
Are you sure that r8712_find_network() does not have some other
side-affect here? Please doucment that in the changelog text.
thanks,
greg k-h
next prev parent reply other threads:[~2021-04-08 6:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-07 19:32 [PATCH] staging: rtl8712: remove unused variable from rtl871x_mlme.c Sergei Krainov
2021-04-08 6:23 ` Greg KH [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-04-08 8:33 Sergei Krainov
2021-04-08 8:38 ` Greg KH
2021-04-08 9:24 Sergei Krainov
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=YG6hb9YoPyrtEQdc@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=Larry.Finger@lwfinger.net \
--cc=florian.c.schilhabel@googlemail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=sergei.krainov.lkd@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 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.