staging: r8188eu: CCK_24G_Diff is set but not used
authorMartin Kaiser <martin@kaiser.cx>
Wed, 5 Jan 2022 08:34:23 +0000 (09:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jan 2022 14:04:55 +0000 (15:04 +0100)
The CCK_24G_Diff array is set but not used. Remove it.

Acked-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220105083426.177128-5-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_hal_init.c
drivers/staging/r8188eu/include/rtl8188e_hal.h

index 5efee67..45518f5 100644 (file)
@@ -1132,12 +1132,10 @@ void Hal_ReadTxPowerInfo88E(struct adapter *padapter, u8 *PROMContent, bool Auto
                DBG_88E("Index24G_BW40_Base[%d] = 0x%x\n", ch, pHalData->Index24G_BW40_Base[ch]);
        }
        for (TxCount = 0; TxCount < MAX_TX_COUNT; TxCount++) {
-               pHalData->CCK_24G_Diff[0][TxCount] = pwrInfo24G.CCK_Diff[0][TxCount];
                pHalData->OFDM_24G_Diff[0][TxCount] = pwrInfo24G.OFDM_Diff[0][TxCount];
                pHalData->BW20_24G_Diff[0][TxCount] = pwrInfo24G.BW20_Diff[0][TxCount];
                pHalData->BW40_24G_Diff[0][TxCount] = pwrInfo24G.BW40_Diff[0][TxCount];
                DBG_88E("======= TxCount %d =======\n", TxCount);
-               DBG_88E("CCK_24G_Diff[0][%d] = %d\n", TxCount, pHalData->CCK_24G_Diff[0][TxCount]);
                DBG_88E("OFDM_24G_Diff[0][%d] = %d\n", TxCount, pHalData->OFDM_24G_Diff[0][TxCount]);
                DBG_88E("BW20_24G_Diff[0][%d] = %d\n", TxCount, pHalData->BW20_24G_Diff[0][TxCount]);
                DBG_88E("BW40_24G_Diff[0][%d] = %d\n", TxCount, pHalData->BW40_24G_Diff[0][TxCount]);
index 3420830..3f818e9 100644 (file)
@@ -181,7 +181,6 @@ struct hal_data_8188e {
        u8      Index24G_CCK_Base[CHANNEL_MAX_NUMBER];
        u8      Index24G_BW40_Base[CHANNEL_MAX_NUMBER];
        /* If only one tx, only BW20 and OFDM are used. */
-       s8      CCK_24G_Diff[RF_PATH_MAX][MAX_TX_COUNT];
        s8      OFDM_24G_Diff[RF_PATH_MAX][MAX_TX_COUNT];
        s8      BW20_24G_Diff[RF_PATH_MAX][MAX_TX_COUNT];
        s8      BW40_24G_Diff[RF_PATH_MAX][MAX_TX_COUNT];