mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
staging: r8188eu: remove unnecessary if statement
SupportPlatform is ODM_CE in this driver. Remove an unnecessary if statement that checks the SupportPlatform value. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20210918181904.12000-6-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
03e9a558af
commit
74f42d4f06
1 changed files with 4 additions and 5 deletions
|
@ -465,11 +465,10 @@ void ODM_Write_DIG(struct odm_dm_struct *pDM_Odm, u8 CurrentIGI)
|
|||
struct rtw_dig *pDM_DigTable = &pDM_Odm->DM_DigTable;
|
||||
|
||||
if (pDM_DigTable->CurIGValue != CurrentIGI) {
|
||||
if (pDM_Odm->SupportPlatform & (ODM_CE | ODM_MP)) {
|
||||
ODM_SetBBReg(pDM_Odm, ODM_REG(IGI_A, pDM_Odm), ODM_BIT(IGI, pDM_Odm), CurrentIGI);
|
||||
if (pDM_Odm->SupportICType != ODM_RTL8188E)
|
||||
ODM_SetBBReg(pDM_Odm, ODM_REG(IGI_B, pDM_Odm), ODM_BIT(IGI, pDM_Odm), CurrentIGI);
|
||||
}
|
||||
ODM_SetBBReg(pDM_Odm, ODM_REG(IGI_A, pDM_Odm), ODM_BIT(IGI, pDM_Odm), CurrentIGI);
|
||||
if (pDM_Odm->SupportICType != ODM_RTL8188E)
|
||||
ODM_SetBBReg(pDM_Odm, ODM_REG(IGI_B, pDM_Odm), ODM_BIT(IGI, pDM_Odm), CurrentIGI);
|
||||
|
||||
pDM_DigTable->CurIGValue = CurrentIGI;
|
||||
}
|
||||
/* Add by Neil Chen to enable edcca to MP Platform */
|
||||
|
|
Loading…
Reference in a new issue