aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c
diff options
context:
space:
mode:
authorPhillip Potter <phil@philpotter.co.uk>2021-06-15 23:36:06 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-16 09:25:29 +0200
commitdaadab03824acf1b7e2701fd98ac99f1ec75e6e7 (patch)
tree289feb00b6c7bbfb5a7e26d735346b3168807b97 /drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c
parentstaging: rtl8188eu: remove unused variable from os_dep/ioctl_linux.c (diff)
downloadlinux-dev-daadab03824acf1b7e2701fd98ac99f1ec75e6e7.tar.xz
linux-dev-daadab03824acf1b7e2701fd98ac99f1ec75e6e7.zip
staging: rtl8188eu: remove unused variables from hal/rtl8188e_cmd.c
Remove set but unused variables from within the file hal/rtl8188e_cmd.c in the function rtl8188e_set_FwMediaStatus_cmd, as they are triggering kernel test robot warnings. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Phillip Potter <phil@philpotter.co.uk> Link: https://lore.kernel.org/r/20210615223607.13863-7-phil@philpotter.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c')
-rw-r--r--drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c b/drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c
index 19c8976c2e01..f2969e160ac3 100644
--- a/drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c
+++ b/drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c
@@ -177,12 +177,8 @@ void rtl8188e_set_FwPwrMode_cmd(struct adapter *adapt, u8 Mode)
void rtl8188e_set_FwMediaStatus_cmd(struct adapter *adapt, __le16 mstatus_rpt)
{
- u8 opmode, macid;
u16 mst_rpt = le16_to_cpu(mstatus_rpt);
- opmode = (u8)mst_rpt;
- macid = (u8)(mst_rpt >> 8);
-
FillH2CCmd_88E(adapt, H2C_COM_MEDIA_STATUS_RPT, sizeof(mst_rpt), (u8 *)&mst_rpt);
}