linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Fabio Aiuto <fabioaiuto83@gmail.com>
To: gregkh@linuxfoundation.org
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
	Fabio Aiuto <fabioaiuto83@gmail.com>
Subject: [PATCH 05/11] staging: rtl8723bs: remove set but unused psta variable in rtw_dbg_port() in os_dep/ioctl_linux.c
Date: Fri,  9 Apr 2021 12:01:33 +0200	[thread overview]
Message-ID: <62b6c48b887decdde4b5343472089665518d205b.1617962215.git.fabioaiuto83@gmail.com> (raw)
In-Reply-To: <cover.1617962215.git.fabioaiuto83@gmail.com>

remove set but unused variable. Fix W=1 compiler warning:

drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:
In function ‘rtw_dbg_port’:
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:2443:19:
warning: variable ‘psta’ set but not used [-Wunused-but-set-variable]
  struct sta_info *psta;
                   ^~~~

Remove also the function call that sets this variable.

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
---
 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
index d70e2d5d51e7..d4392459082d 100644
--- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
@@ -2440,7 +2440,6 @@ static int rtw_dbg_port(struct net_device *dev,
 	u8 major_cmd, minor_cmd;
 	u16 arg;
 	u32 extra_arg, *pdata, val32;
-	struct sta_info *psta;
 	struct adapter *padapter = rtw_netdev_priv(dev);
 	struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
 	struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
@@ -2542,7 +2541,6 @@ static int rtw_dbg_port(struct net_device *dev,
 
 					break;
 				case 0x05:
-					psta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress);
 					break;
 				case 0x06:
 					{
-- 
2.20.1


  parent reply	other threads:[~2021-04-09 10:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-09 10:01 [PATCH 00/11] staging: rtl8723bs: remove unused variables Fabio Aiuto
2021-04-09 10:01 ` [PATCH 01/11] staging: rtl8723bs: remove unused variable in core/rtw_cmd.c Fabio Aiuto
2021-04-09 10:01 ` [PATCH 02/11] staging: rtl8723bs: remove unused variable and empty for cycles left unused in os_dep/ioctl_linux.c Fabio Aiuto
2021-04-09 10:01 ` [PATCH 03/11] staging: rtl8723bs: remove unused code block " Fabio Aiuto
2021-04-09 10:01 ` [PATCH 04/11] staging: rtl8723bs: remove unused variables and code block left unused " Fabio Aiuto
2021-04-09 10:01 ` Fabio Aiuto [this message]
2021-04-09 10:01 ` [PATCH 06/11] staging: rtl8723bs: remove unused variable pstapriv in rtw_dbg_port() " Fabio Aiuto
2021-04-09 10:01 ` [PATCH 07/11] staging: rtl8723bs: remove unused cur_network variable " Fabio Aiuto
2021-04-09 10:01 ` [PATCH 08/11] staging: rtl8723bs: remove unused pmlmepriv " Fabio Aiuto
2021-04-09 10:01 ` [PATCH 09/11] staging: rtl8723bs: remove unused variable declaration in include/rtw_security.h Fabio Aiuto
2021-04-09 10:01 ` [PATCH 10/11] staging: rtl8723bs: remove unused variable in os_dep/ioctl_linux.c Fabio Aiuto
2021-04-09 10:01 ` [PATCH 11/11] staging: rtl8723bs: remove decl of unused static const " Fabio Aiuto

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=62b6c48b887decdde4b5343472089665518d205b.1617962215.git.fabioaiuto83@gmail.com \
    --to=fabioaiuto83@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    /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).