Skip to contentSkip to conversation

staging: r8188eu: remove unused ODM_RASupport_Init()

PATCH New Michael Straube 1 participant 2 messages Sep 16, 2021 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 staging: r8188eu: remove unused ODM_RASupport_Init()

Function ODM_RASupport_Init() is unused, remove it.

---
 drivers/staging/r8188eu/hal/Hal8188ERateAdaptive.c     | 10 ----------
 drivers/staging/r8188eu/include/Hal8188ERateAdaptive.h |  2 --
 2 files changed, 12 deletions(-)
drivers/staging/r8188eu/hal/Hal8188ERateAdaptive.c +0 -10
index d873672feb27..8a6cb18b0f29 100644
@@ -471,16 +471,6 @@ odm_RATxRPTTimerSetting(
 	}
 }
 
-void
-ODM_RASupport_Init(
-		struct odm_dm_struct *dm_odm
-	)
-{
-	/*  2012/02/14 MH Be noticed, the init must be after IC type is recognized!!!!! */
-	if (dm_odm->SupportICType == ODM_RTL8188E)
-		dm_odm->RaSupport88E = true;
-}
-
 int ODM_RAInfo_Init(struct odm_dm_struct *dm_odm, u8 macid)
 {
 	struct odm_ra_info *pRaInfo = &dm_odm->RAInfo[macid];
drivers/staging/r8188eu/include/Hal8188ERateAdaptive.h +0 -2
index d5ced507a648..20d73ca781e8 100644
@@ -37,8 +37,6 @@
 	LE_BITS_TO_1BYTE(__paddr + 6, 0, 8)
 /*  End rate adaptive define */
 
-void ODM_RASupport_Init(struct odm_dm_struct *dm_odm);
-
 int ODM_RAInfo_Init_all(struct odm_dm_struct *dm_odm);
 
 int ODM_RAInfo_Init(struct odm_dm_struct *dm_odm, u8 MacID);
Signature · 1 line
2.33.0
#1 lore raw

PATCH 2/2 staging: r8188eu: remove RaSupport88E from struct odm_dm_struct

The field RaSupport88E of struct odm_dm_struct is unused. Remove it.

---
 drivers/staging/r8188eu/include/odm.h | 7 -------
 1 file changed, 7 deletions(-)
drivers/staging/r8188eu/include/odm.h +0 -7
index 4fee0e9e0df3..265583a43494 100644
@@ -847,13 +847,6 @@ struct odm_dm_struct {
 	struct odm_ra_info RAInfo[ODM_ASSOCIATE_ENTRY_NUM]; /* Use MacID as
 			* array index. STA MacID=0,
 			* VWiFi Client MacID={1, ODM_ASSOCIATE_ENTRY_NUM-1} */
-	/*  */
-	/*  2012/02/14 MH Add to share 88E ra with other SW team. */
-	/*  We need to colelct all support abilit to a proper area. */
-	/*  */
-	bool	RaSupport88E;
-
-	/*  Define ........... */
 
 	/*  Latest packet phy info (ODM write) */
 	struct odm_phy_dbg_info PhyDbgInfo;
Signature · 1 line
2.33.0