Skip to content

Commit 41b7c4e

Browse files
martin-kaisergregkh
authored andcommitted
staging: r8188eu: BW40_24G_Diff is set but not used
The BW40_24G_Diff array is set but not used. Remove it. Acked-by: Michael Straube <[email protected]> Signed-off-by: Martin Kaiser <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ef2efa8 commit 41b7c4e

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

drivers/staging/r8188eu/hal/rtl8188e_hal_init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,11 +1134,9 @@ void Hal_ReadTxPowerInfo88E(struct adapter *padapter, u8 *PROMContent, bool Auto
11341134
for (TxCount = 0; TxCount < MAX_TX_COUNT; TxCount++) {
11351135
pHalData->OFDM_24G_Diff[0][TxCount] = pwrInfo24G.OFDM_Diff[0][TxCount];
11361136
pHalData->BW20_24G_Diff[0][TxCount] = pwrInfo24G.BW20_Diff[0][TxCount];
1137-
pHalData->BW40_24G_Diff[0][TxCount] = pwrInfo24G.BW40_Diff[0][TxCount];
11381137
DBG_88E("======= TxCount %d =======\n", TxCount);
11391138
DBG_88E("OFDM_24G_Diff[0][%d] = %d\n", TxCount, pHalData->OFDM_24G_Diff[0][TxCount]);
11401139
DBG_88E("BW20_24G_Diff[0][%d] = %d\n", TxCount, pHalData->BW20_24G_Diff[0][TxCount]);
1141-
DBG_88E("BW40_24G_Diff[0][%d] = %d\n", TxCount, pHalData->BW40_24G_Diff[0][TxCount]);
11421140
}
11431141

11441142
/* 2010/10/19 MH Add Regulator recognize for CU. */

drivers/staging/r8188eu/include/rtl8188e_hal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ struct hal_data_8188e {
183183
/* If only one tx, only BW20 and OFDM are used. */
184184
s8 OFDM_24G_Diff[RF_PATH_MAX][MAX_TX_COUNT];
185185
s8 BW20_24G_Diff[RF_PATH_MAX][MAX_TX_COUNT];
186-
s8 BW40_24G_Diff[RF_PATH_MAX][MAX_TX_COUNT];
187186

188187
/* HT 20<->40 Pwr diff */
189188
u8 TxPwrHt20Diff[RF_PATH_MAX][CHANNEL_MAX_NUMBER];

0 commit comments

Comments
 (0)