From 688f475de9f3c4b3d8e54b10c3cae7082cf6a174 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Thu, 9 Mar 2017 13:22:31 -0800 Subject: [PATCH] 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 --- core/hdd/inc/wlan_hdd_wext.h | 2 -- core/hdd/src/wlan_hdd_wext.c | 4 ---- 2 files changed, 6 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_wext.h b/core/hdd/inc/wlan_hdd_wext.h index 601d682ad8..b949041ebd 100644 --- a/core/hdd/inc/wlan_hdd_wext.h +++ b/core/hdd/inc/wlan_hdd_wext.h @@ -254,8 +254,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 be013d5f42..5eb4d28be1 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -13487,10 +13487,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;