diff options
| author | Jeff Johnson <jjohnson@codeaurora.org> | 2017-03-09 09:14:06 -0800 |
|---|---|---|
| committer | Sandeep Puligilla <spuligil@codeaurora.org> | 2017-03-10 16:09:57 -0800 |
| commit | 7e83dfe8f38426d7ba41ffd7687b0009cfc8512e (patch) | |
| tree | 5d4c076ae8f0a847fdb7482b9ff61d4cca430176 | |
| parent | 34d7e45699cd9fe0972d0e0f0c18f28f940c7118 (diff) | |
qcacld-3.0: Remove unused completion_var from hdd_wext_state_t
Currently struct hdd_wext_state_s (typedefed as hdd_wext_state_t)
contains the field "struct completion completion_var". This completion
object is initialized, but beyond that it is never used. Since this
object is obsolete, remove it.
Change-Id: Ibebd7b4d1e8879b4de223a8be4bab2ca0d2fc165
CRs-Fixed: 2017354
| -rw-r--r-- | core/hdd/inc/wlan_hdd_wext.h | 5 | ||||
| -rw-r--r-- | core/hdd/src/wlan_hdd_wext.c | 5 |
2 files changed, 1 insertions, 9 deletions
diff --git a/core/hdd/inc/wlan_hdd_wext.h b/core/hdd/inc/wlan_hdd_wext.h index 6a06d042bfbf..c7836492b1a0 100644 --- a/core/hdd/inc/wlan_hdd_wext.h +++ b/core/hdd/inc/wlan_hdd_wext.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -260,9 +260,6 @@ typedef struct hdd_wext_state_s { /**Counter measure state, Started/Stopped*/ bool mTKIPCounterMeasures; - /**Completion Variable*/ - struct completion completion_var; - #ifdef FEATURE_WLAN_ESE /* ESE state variables */ bool isESEConnection; diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index 376786df0b10..82ac641c4359 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -7473,7 +7473,6 @@ static int __iw_setint_getnone(struct net_device *dev, hdd_adapter_t *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev); tHalHandle hHal = WLAN_HDD_GET_HAL_CTX(pAdapter); hdd_station_ctx_t *pHddStaCtx = WLAN_HDD_GET_STATION_CTX_PTR(pAdapter); - hdd_wext_state_t *pWextState = WLAN_HDD_GET_WEXT_STATE_PTR(pAdapter); hdd_context_t *hdd_ctx; tSmeConfigParams smeConfig; int *value = (int *)extra; @@ -7485,7 +7484,6 @@ static int __iw_setint_getnone(struct net_device *dev, ENTER_DEV(dev); - INIT_COMPLETION(pWextState->completion_var); memset(&smeConfig, 0x00, sizeof(smeConfig)); hdd_ctx = WLAN_HDD_GET_CTX(pAdapter); @@ -13659,9 +13657,6 @@ int hdd_register_wext(struct net_device *dev) /* Zero the memory. This zeros the profile structure */ memset(pwextBuf, 0, sizeof(hdd_wext_state_t)); - init_completion(&(WLAN_HDD_GET_WEXT_STATE_PTR(pAdapter))-> - completion_var); - status = hdd_set_wext(pAdapter); if (!QDF_IS_STATUS_SUCCESS(status)) { |
