Commit 6a3631bd authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman
Browse files

staging: r8188eu: RSSI_test is always false



The field RSSI_test of struct odm_dm_struct is never set. It stays
at the default value 0. Remove it and remove a related if test that
is always true.

Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20211228101120.9120-10-straube.linux@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f4b1b1f3
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -358,9 +358,7 @@ void ODM_PhyStatusQuery(struct odm_dm_struct *dm_odm,
			struct odm_per_pkt_info *pPktinfo,
			struct adapter *adapt)
{
	odm_RxPhyStatus92CSeries_Parsing(dm_odm, pPhyInfo, pPhyStatus,
					 pPktinfo, adapt);
	if (!dm_odm->RSSI_test)
	odm_RxPhyStatus92CSeries_Parsing(dm_odm, pPhyInfo, pPhyStatus, pPktinfo, adapt);
	odm_Process_RSSIForDM(dm_odm, pPhyInfo, pPktinfo);
}

+0 −1
Original line number Diff line number Diff line
@@ -468,7 +468,6 @@ struct odm_dm_struct {
	struct rtl_ps	DM_PSTable;
	struct false_alarm_stats FalseAlmCnt;
	struct sw_ant_switch DM_SWAT_Table;
	bool		RSSI_test;

	struct edca_turbo DM_EDCA_Table;