From 89cd1ff6aac3779cdde97d5951d7cd01d703a0e4 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 22 Jul 2018 21:00:48 -0700 Subject: [PATCH] qcacld-3.0: Remove scan_id_counter from WMA context The scan_id_counter in the WMA context is initialized but never incremented or read. Since it is not actually used, remove it. Change-Id: Id159ba6ff36ae2a3977978f8799cf16aeee5300d CRs-Fixed: 2294150 --- core/wma/inc/wma.h | 1 - core/wma/src/wma_main.c | 1 - 2 files changed, 2 deletions(-) diff --git a/core/wma/inc/wma.h b/core/wma/inc/wma.h index 5285e98b483c..a0055b8ee723 100644 --- a/core/wma/inc/wma.h +++ b/core/wma/inc/wma.h @@ -1221,7 +1221,6 @@ typedef struct { struct dbs_hw_mode_info hw_mode; uint32_t old_hw_mode_index; uint32_t new_hw_mode_index; - qdf_atomic_t scan_id_counter; wma_peer_authorized_fp peer_authorized_cb; uint32_t wow_unspecified_wake_count; diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index e049d2e82734..9cacab55c0d6 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -3285,7 +3285,6 @@ QDF_STATUS wma_open(struct wlan_objmgr_psoc *psoc, MAX_ENTRY_HOLD_REQ_QUEUE); qdf_spinlock_create(&wma_handle->wma_hold_req_q_lock); qdf_atomic_init(&wma_handle->is_wow_bus_suspended); - qdf_atomic_init(&wma_handle->scan_id_counter); /* Register vdev start response event handler */ wmi_unified_register_event_handler(wma_handle->wmi_handle,