瀏覽代碼

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 年之前
父節點
當前提交
8977d22dc7
共有 2 個文件被更改,包括 0 次插入6 次删除
  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;