diff options
| author | 2021-09-17 10:06:13 +0200 | |
|---|---|---|
| committer | 2021-09-17 16:32:06 +0200 | |
| commit | 17be21761339dfa4b25f96f73a205c6e3f569da4 (patch) | |
| tree | 4182c6494f1b9f348fb5ef08b338225291e4c2de | |
| parent | staging: r8188eu: remove IS_1T1R, IS_1T2R, IS_2T2R macros (diff) | |
staging: r8188eu: remove if test that is always true
The test "if (pHalData->rf_type == RF_1T1R)" is always true in this
driver. Remove the test and the dead else arm.
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210917080615.25819-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/r8188eu/hal/rtl8188e_rf6052.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/staging/r8188eu/hal/rtl8188e_rf6052.c b/drivers/staging/r8188eu/hal/rtl8188e_rf6052.c index ad0782259654..03b68b3e3550 100644 --- a/drivers/staging/r8188eu/hal/rtl8188e_rf6052.c +++ b/drivers/staging/r8188eu/hal/rtl8188e_rf6052.c @@ -533,14 +533,7 @@ int PHY_RF6052_Config8188E(struct adapter *Adapter) struct hal_data_8188e *pHalData = GET_HAL_DATA(Adapter); int rtStatus = _SUCCESS; - /* */ - /* Initialize general global value */ - /* */ - /* TODO: Extend RF_PATH_C and RF_PATH_D in the future */ - if (pHalData->rf_type == RF_1T1R) - pHalData->NumTotalRFPath = 1; - else - pHalData->NumTotalRFPath = 2; + pHalData->NumTotalRFPath = 1; /* */ /* Config BB and RF */ |
