Skip to content

Commit ef2efa8

Browse files
martin-kaisergregkh
authored andcommitted
staging: r8188eu: CCK_24G_Diff is set but not used
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>
1 parent eeb35e4 commit ef2efa8

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/staging/r8188eu/hal/rtl8188e_hal_init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,12 +1132,10 @@ void Hal_ReadTxPowerInfo88E(struct adapter *padapter, u8 *PROMContent, bool Auto
11321132
DBG_88E("Index24G_BW40_Base[%d] = 0x%x\n", ch, pHalData->Index24G_BW40_Base[ch]);
11331133
}
11341134
for (TxCount = 0; TxCount < MAX_TX_COUNT; TxCount++) {
1135-
pHalData->CCK_24G_Diff[0][TxCount] = pwrInfo24G.CCK_Diff[0][TxCount];
11361135
pHalData->OFDM_24G_Diff[0][TxCount] = pwrInfo24G.OFDM_Diff[0][TxCount];
11371136
pHalData->BW20_24G_Diff[0][TxCount] = pwrInfo24G.BW20_Diff[0][TxCount];
11381137
pHalData->BW40_24G_Diff[0][TxCount] = pwrInfo24G.BW40_Diff[0][TxCount];
11391138
DBG_88E("======= TxCount %d =======\n", TxCount);
1140-
DBG_88E("CCK_24G_Diff[0][%d] = %d\n", TxCount, pHalData->CCK_24G_Diff[0][TxCount]);
11411139
DBG_88E("OFDM_24G_Diff[0][%d] = %d\n", TxCount, pHalData->OFDM_24G_Diff[0][TxCount]);
11421140
DBG_88E("BW20_24G_Diff[0][%d] = %d\n", TxCount, pHalData->BW20_24G_Diff[0][TxCount]);
11431141
DBG_88E("BW40_24G_Diff[0][%d] = %d\n", TxCount, pHalData->BW40_24G_Diff[0][TxCount]);

drivers/staging/r8188eu/include/rtl8188e_hal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ struct hal_data_8188e {
181181
u8 Index24G_CCK_Base[CHANNEL_MAX_NUMBER];
182182
u8 Index24G_BW40_Base[CHANNEL_MAX_NUMBER];
183183
/* If only one tx, only BW20 and OFDM are used. */
184-
s8 CCK_24G_Diff[RF_PATH_MAX][MAX_TX_COUNT];
185184
s8 OFDM_24G_Diff[RF_PATH_MAX][MAX_TX_COUNT];
186185
s8 BW20_24G_Diff[RF_PATH_MAX][MAX_TX_COUNT];
187186
s8 BW40_24G_Diff[RF_PATH_MAX][MAX_TX_COUNT];

0 commit comments

Comments
 (0)