staging: r8188eu: remove rf_type from getTxPowerIndex88E()
authorMichael Straube <straube.linux@gmail.com>
Sun, 28 Nov 2021 17:09:18 +0000 (18:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Dec 2021 14:13:36 +0000 (15:13 +0100)
commit8f18397277308220e7079fadaf71d5d9c72c71c5
tree915b136354c9535ceca67a35c194aa186e9acce0
parent0cafa5b5eb224be837dd3c948d34bc977ddedc88
staging: r8188eu: remove rf_type from getTxPowerIndex88E()

pHalData->rf_type is always RF_1T1R. As a result the variable
path_nums is always set to 1 and the for loop is entered only
once with TxCount = 0. Also RF_PATH_A = 0. Remove the unneeded
check for pHalData->rf_type and resulting dead code from
getTxPowerIndex88E().

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20211128170924.5874-5-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_phycfg.c