From 5522bc9a07ae91733222011fd8206581a2b401f7 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Thu, 31 Aug 2017 10:39:09 -0700 Subject: [PATCH] qcacld-3.0: Remove unused p_cds_context in "set mac acl" __wlan_hdd_cfg80211_set_mac_acl() contains a local variable p_cds_context that is written but never read, hence it is unused. Therfore remove the variable. Change-Id: I99051fbfb5e44791514a5086eb9cf33f773ffbee CRs-Fixed: 2102503 --- core/hdd/src/wlan_hdd_cfg80211.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 6bc1afcf13b5..036ada5de4e2 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -18428,7 +18428,6 @@ static int __wlan_hdd_cfg80211_set_mac_acl(struct wiphy *wiphy, hdd_adapter_t *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev); hdd_hostapd_state_t *pHostapdState; tsap_Config_t *pConfig; - v_CONTEXT_t p_cds_context = NULL; hdd_context_t *pHddCtx; int status; QDF_STATUS qdf_status = QDF_STATUS_SUCCESS; @@ -18451,7 +18450,6 @@ static int __wlan_hdd_cfg80211_set_mac_acl(struct wiphy *wiphy, if (0 != status) return status; - p_cds_context = pHddCtx->pcds_context; pHostapdState = WLAN_HDD_GET_HOSTAP_STATE_PTR(pAdapter); if (NULL == pHostapdState) {