From 8977d22dc7cdb92b2acbeb1ef526aa1a5ed4059e Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 16 Dec 2018 14:20:53 -0800 Subject: [PATCH] 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 --- core/mac/inc/ani_global.h | 3 --- core/mac/src/pe/lim/lim_api.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/core/mac/inc/ani_global.h b/core/mac/inc/ani_global.h index 7adcff1944..f8a6e9e63b 100644 --- a/core/mac/inc/ani_global.h +++ b/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; diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c index 67d3e7bf0d..8791c849ea 100644 --- a/core/mac/src/pe/lim/lim_api.c +++ b/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;