staging: r8188eu: remove more dead code from ODM_Write_DIG()
authorMichael Straube <straube.linux@gmail.com>
Sat, 18 Sep 2021 18:18:56 +0000 (20:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Sep 2021 11:41:32 +0000 (13:41 +0200)
SupportICType is ODM_RTL8188E in this driver. Remove code that is
never executed.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210918181904.12000-7-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/odm.c

index cac4f8ff7b6389746e17d97e4722b44f2d93941e..48c10b78f4a5b332b0a1fc2459aae52008b80918 100644 (file)
@@ -466,12 +466,8 @@ void ODM_Write_DIG(struct odm_dm_struct *pDM_Odm, u8 CurrentIGI)
 
        if (pDM_DigTable->CurIGValue != 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 */
 }
 
 /* Need LPS mode for CE platform --2012--08--24--- */