Commit 15774b84 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman
Browse files

staging: r8188eu: remove unnecessary if statements



(pDM_Odm->SupportICType & ODM_IC_11AC_SERIES) is always false and
(pDM_Odm->SupportICType & ODM_IC_11N_SERIES) is always true since
SupportICType is ODM_RTL8188E in this driver. Remove unnecessary
if statements that check for this.

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


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 21c318af
Loading
Loading
Loading
Loading
+16 −23
Original line number Diff line number Diff line
@@ -163,9 +163,6 @@ void ODM_DMInit(struct odm_dm_struct *pDM_Odm)
	odm_DIGInit(pDM_Odm);
	odm_RateAdaptiveMaskInit(pDM_Odm);

	if (pDM_Odm->SupportICType & ODM_IC_11AC_SERIES) {
		;
	} else if (pDM_Odm->SupportICType & ODM_IC_11N_SERIES) {
	odm_PrimaryCCA_Init(pDM_Odm);    /*  Gary */
	odm_DynamicBBPowerSavingInit(pDM_Odm);
	odm_DynamicTxPowerInit(pDM_Odm);
@@ -179,7 +176,6 @@ void ODM_DMInit(struct odm_dm_struct *pDM_Odm)
	else if (pDM_Odm->AntDivType == CGCS_RX_SW_ANTDIV)
		odm_SwAntDivInit(pDM_Odm);
}
}

/*  2011/09/20 MH This is the entry pointer for all team to execute HW out source DM. */
/*  You can not add any dummy function here, be care, you can only use DM structure */
@@ -218,13 +214,10 @@ void ODM_DMWatchdog(struct odm_dm_struct *pDM_Odm)
	else if (pDM_Odm->AntDivType == CGCS_RX_SW_ANTDIV)
		odm_SwAntDivChkAntSwitch(pDM_Odm, SWAW_STEP_PEAK);

	if (pDM_Odm->SupportICType & ODM_IC_11AC_SERIES) {
		;
	} else if (pDM_Odm->SupportICType & ODM_IC_11N_SERIES) {
	ODM_TXPowerTrackingCheck(pDM_Odm);
	odm_EdcaTurboCheck(pDM_Odm);
	odm_DynamicTxPower(pDM_Odm);
	}

	odm_dtc(pDM_Odm);
}