summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2017-03-09 13:22:31 -0800
committerSandeep Puligilla <spuligil@codeaurora.org>2017-03-10 16:09:58 -0800
commit70e10f74fa9187e12d7925b36b462ba4fa9c038f (patch)
tree2ff38439ceed015792214b898cb3e4d85ebf7a37
parent7e83dfe8f38426d7ba41ffd7687b0009cfc8512e (diff)
qcacld-3.0: Remove unused scanevent from hdd_wext_state_t
Currently struct hdd_wext_state_s (typedefed as hdd_wext_state_t) contains the field "qdf_event_t scanevent". This event is created, but beyond that it is never used. Since this object is obsolete, remove it. CRs-Fixed: 2017476 Change-Id: I7bd4290e1b4d0df069e8e6e6c9347c1ac3c01c63
-rw-r--r--core/hdd/inc/wlan_hdd_wext.h2
-rw-r--r--core/hdd/src/wlan_hdd_wext.c4
2 files changed, 0 insertions, 6 deletions
diff --git a/core/hdd/inc/wlan_hdd_wext.h b/core/hdd/inc/wlan_hdd_wext.h
index c7836492b1a0..63e772576370 100644
--- a/core/hdd/inc/wlan_hdd_wext.h
+++ b/core/hdd/inc/wlan_hdd_wext.h
@@ -255,8 +255,6 @@ typedef struct hdd_wext_state_s {
/* qdf event */
qdf_event_t hdd_qdf_event;
- qdf_event_t scanevent;
-
/**Counter measure state, Started/Stopped*/
bool mTKIPCounterMeasures;
diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c
index 82ac641c4359..eb29e4758e56 100644
--- a/core/hdd/src/wlan_hdd_wext.c
+++ b/core/hdd/src/wlan_hdd_wext.c
@@ -13670,10 +13670,6 @@ int hdd_register_wext(struct net_device *dev)
return QDF_STATUS_E_FAILURE;
}
- if (!QDF_IS_STATUS_SUCCESS(qdf_event_create(&pwextBuf->scanevent))) {
- hdd_err("ERROR: HDD scan event init failed!!");
- return QDF_STATUS_E_FAILURE;
- }
/* Register as a wireless device */
dev->wireless_handlers = (struct iw_handler_def *)&we_handler_def;