summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip Potter <phil@philpotter.co.uk>2022-02-22 23:35:06 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-25 10:05:36 +0100
commit57cbe4277d3420ea94142fbb162116030d4035f3 (patch)
treefc1305871da14337094a84c19d3f39f6583980d5
parentd4cbaca3d086ed70a0dfa07f2bc51c87d4299cea (diff)
downloadlinux-57cbe4277d3420ea94142fbb162116030d4035f3.tar.gz
linux-57cbe4277d3420ea94142fbb162116030d4035f3.zip
staging: r8188eu: remove unused variable from UpdateHalRAMask8188EUsb
Remove the 'arg' variable from the block inside the if statement in the UpdateHalRAMask8188EUsb function in hal/usb_halinit.c, as due to the recent DBG_88E cleanup series, this is now set but not used. Also remove the rest of the lines in this block that further modify 'arg' as they are superfluous, due to it never being used afterwards. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Phillip Potter <phil@philpotter.co.uk> Link: https://lore.kernel.org/r/20220222233506.72778-1-phil@philpotter.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/r8188eu/hal/usb_halinit.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/r8188eu/hal/usb_halinit.c b/drivers/staging/r8188eu/hal/usb_halinit.c
index 0704fa3156af..d7dcef3ece3d 100644
--- a/drivers/staging/r8188eu/hal/usb_halinit.c
+++ b/drivers/staging/r8188eu/hal/usb_halinit.c
@@ -1528,12 +1528,6 @@ void UpdateHalRAMask8188EUsb(struct adapter *adapt, u32 mac_id, u8 rssi_level)
init_rate = get_highest_rate_idx(mask) & 0x3f;
if (haldata->fw_ractrl) {
- u8 arg;
-
- arg = mac_id & 0x1f;/* MACID */
- arg |= BIT(7);
- if (shortGIrate)
- arg |= BIT(5);
mask |= ((raid << 28) & 0xf0000000);
psta->ra_mask = mask;
mask |= ((raid << 28) & 0xf0000000);