Kaynağa Gözat

qcacld-3.0: Remove gLimDeauthReasonCode from tAniSirLim

The gLimDeauthReasonCode field in tAniSirLim is initialized to 0 but
is otherwise never referenced. Since the field is ultimately unused,
remove it.

Change-Id: Ic3da451c4b3540ba72d45a1f03b0e89cc2ece725
CRs-Fixed: 2370783
Jeff Johnson 6 yıl önce
ebeveyn
işleme
8977d22dc7
2 değiştirilmiş dosya ile 0 ekleme ve 6 silme
  1. 0 3
      core/mac/inc/ani_global.h
  2. 0 3
      core/mac/src/pe/lim/lim_api.c

+ 0 - 3
core/mac/inc/ani_global.h

@@ -561,9 +561,6 @@ typedef struct sAniSirLim {
 	uint32_t gLimNumPreAuthContexts;
 	tLimPreAuthTable gLimPreAuthTimerTable;
 
-	/* Placed holder to deauth reason */
-	uint16_t gLimDeauthReasonCode;
-
 	/* Place holder for Pre-authentication node list */
 	struct tLimPreAuthNode *pLimPreAuthList;
 

+ 0 - 3
core/mac/src/pe/lim/lim_api.c

@@ -220,9 +220,6 @@ static void __lim_init_assoc_vars(struct mac_context *mac)
 	qdf_mem_set(&mac->lim.gLimPreAuthTimerTable, sizeof(tLimPreAuthTable),
 		    0);
 
-	/* Placed holder to deauth reason */
-	mac->lim.gLimDeauthReasonCode = 0;
-
 	/* Place holder for Pre-authentication node list */
 	mac->lim.pLimPreAuthList = NULL;