staging: r8188eu: remove write-only fields from struct rtl_ps

The fields pre_cca_state, cur_cca_state and rssi_val_min of struct
rtl_ps are set but never used. Remove them.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20211228101120.9120-6-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Michael Straube 2021-12-28 11:11:15 +01:00 committed by Greg Kroah-Hartman
parent f795060dd4
commit 9e357d4c8f
2 changed files with 0 additions and 15 deletions

View File

@ -574,11 +574,8 @@ void odm_DynamicBBPowerSavingInit(struct odm_dm_struct *pDM_Odm)
{
struct rtl_ps *pDM_PSTable = &pDM_Odm->DM_PSTable;
pDM_PSTable->pre_cca_state = CCA_MAX;
pDM_PSTable->cur_cca_state = CCA_MAX;
pDM_PSTable->pre_rf_state = RF_MAX;
pDM_PSTable->cur_rf_state = RF_MAX;
pDM_PSTable->rssi_val_min = 0;
pDM_PSTable->initialize = 0;
}

View File

@ -48,14 +48,8 @@ struct rtw_dig {
};
struct rtl_ps {
u8 pre_cca_state;
u8 cur_cca_state;
u8 pre_rf_state;
u8 cur_rf_state;
int rssi_val_min;
u8 initialize;
u32 reg_874;
u32 reg_c70;
@ -543,12 +537,6 @@ enum odm_bb_config_type {
/* 3 BB Power Save */
/* 3=========================================================== */
enum dm_1r_cca {
CCA_1R = 0,
CCA_2R = 1,
CCA_MAX = 2,
};
enum dm_rf {
RF_Save = 0,
RF_Normal = 1,