staging: rtl8723bs: remove set but unused psta variable in rtw_dbg_port() in os_dep...
authorFabio Aiuto <fabioaiuto83@gmail.com>
Fri, 9 Apr 2021 10:01:33 +0000 (12:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Apr 2021 14:19:06 +0000 (16:19 +0200)
commit8db11e79ac2a686e540f11ef9f659633607356c1
tree1a36f4782b8388d3b7c688f4174b8c1abbcf2f1e
parent4f4cbe7e853c5437068ee78c2c8c7a5684d3a746
staging: rtl8723bs: remove set but unused psta variable in rtw_dbg_port() in os_dep/ioctl_linux.c

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>
Link: https://lore.kernel.org/r/62b6c48b887decdde4b5343472089665518d205b.1617962215.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c