staging: r8188eu: remove set but unused variable from rtl8188e_Add_RateATid
authorPhillip Potter <phil@philpotter.co.uk>
Mon, 16 Aug 2021 23:44:57 +0000 (00:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Aug 2021 18:01:34 +0000 (20:01 +0200)
commit25bcf747bdfdb413154a3d47985113474dc8133d
treedfdeebf6ee999327bba7d7ea1ecb0799be5e14c7
parent10e13123973bcde7c5d1d2a37a38e4c69a973e98
staging: r8188eu: remove set but unused variable from rtl8188e_Add_RateATid

Remove set but unused variable init_rate from the rtl8188e_Add_RateATid
function in hal/rtl8188eu_cmd.c, as this fixes a kernel test robot
warning. Removing the call to get_highest_rate_idx has no side effects
here so is safe.

Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210816234459.132239-2-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_cmd.c