瀏覽代碼

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
Jeff Johnson 8 年之前
父節點
當前提交
688f475de9
共有 2 個文件被更改,包括 0 次插入6 次删除
  1. 0 2
      core/hdd/inc/wlan_hdd_wext.h
  2. 0 4
      core/hdd/src/wlan_hdd_wext.c

+ 0 - 2
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;
 

+ 0 - 4
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;