staging: r8188eu: remove HAL_*_ENABLE defines
authorMartin Kaiser <martin@kaiser.cx>
Sat, 8 Jan 2022 12:49:58 +0000 (13:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:18:15 +0000 (16:18 +0100)
HAL_(MAC|BB|RF)_ENABLE are always set. Remove the defines and the
checks where they are used.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220108124959.313215-12-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_halinit.c

index 21cb505036b73ed65ba2cf91d3d706964141e080..cc8f8c7d0734ed8e7a462e6745cf3d8e418f2255 100644 (file)
 #include "../include/usb_osintf.h"
 #include "../include/Hal8188EPwrSeq.h"
 
-#define                HAL_MAC_ENABLE  1
-#define                HAL_BB_ENABLE           1
-#define                HAL_RF_ENABLE           1
-
 static void _ConfigNormalChipOutEP_8188E(struct adapter *adapt, u8 NumOutPipe)
 {
        struct hal_data_8188e *haldata = &adapt->haldata;
@@ -640,32 +636,26 @@ u32 rtl8188eu_hal_init(struct adapter *Adapter)
        Adapter->pwrctrlpriv.bFwCurrentInPSMode = false;
        haldata->LastHMEBoxNum = 0;
 
-#if (HAL_MAC_ENABLE == 1)
        status = PHY_MACConfig8188E(Adapter);
        if (status == _FAIL) {
                DBG_88E(" ### Failed to init MAC ......\n ");
                goto exit;
        }
-#endif
 
        /*  */
        /* d. Initialize BB related configurations. */
        /*  */
-#if (HAL_BB_ENABLE == 1)
        status = PHY_BBConfig8188E(Adapter);
        if (status == _FAIL) {
                DBG_88E(" ### Failed to init BB ......\n ");
                goto exit;
        }
-#endif
 
-#if (HAL_RF_ENABLE == 1)
        status = PHY_RFConfig8188E(Adapter);
        if (status == _FAIL) {
                DBG_88E(" ### Failed to init RF ......\n ");
                goto exit;
        }
-#endif
 
        status = rtl8188e_iol_efuse_patch(Adapter);
        if (status == _FAIL) {