staging: r8188eu: remove NumTotalRFPath from struct hal_data_8188e
authorMichael Straube <straube.linux@gmail.com>
Fri, 17 Sep 2021 08:06:14 +0000 (10:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Sep 2021 14:32:06 +0000 (16:32 +0200)
commitf7b687d6b67e5cc20d55a7ddb57f582b60b9a882
treeed443137dfb9665cb90fa699d2fd2d2499120497
parent17be21761339dfa4b25f96f73a205c6e3f569da4
staging: r8188eu: remove NumTotalRFPath from struct hal_data_8188e

NumTotalRFPath is 1 in this driver and it is only used as exit condition
in for loops. Since NumTotalRFPath is always 1, all the loops have only a
single iteration. So we can remove the for loops and the NumTotalRFPath
variable.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210917080615.25819-4-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_hal_init.c
drivers/staging/r8188eu/hal/rtl8188e_mp.c
drivers/staging/r8188eu/hal/rtl8188e_phycfg.c
drivers/staging/r8188eu/hal/rtl8188e_rf6052.c
drivers/staging/r8188eu/include/rtl8188e_hal.h