qcacld-3.0: Remove unused session open event variable
In hdd_adapter structure, the qdf_session_open_event is a declared as event type which is initialized but not used. Remove this unused event variable and all its references. Change-Id: Iec1ece36153a3c9986195bbc2cc19bf8a469f2ee CRs-Fixed: 3354149
This commit is contained in:

committed by
Madan Koyyalamudi

parent
f101354847
commit
5f609834c4
@@ -1052,7 +1052,6 @@ enum udp_qos_upgrade {
|
||||
* sap_ctx would be freed. During the SSR if the
|
||||
* same sap context is used it would result in
|
||||
* null pointer de-reference.
|
||||
* @qdf_session_open_event: QDF event for session open
|
||||
* @qdf_monitor_mode_vdev_up_event: QDF event for monitor mode vdev up
|
||||
* @disconnect_comp_var: completion variable for disconnect callback
|
||||
* @linkup_event_var: completion variable for Linkup Event
|
||||
@@ -1218,8 +1217,6 @@ struct hdd_adapter {
|
||||
|
||||
struct completion vdev_destroy_event;
|
||||
|
||||
qdf_event_t qdf_session_open_event;
|
||||
|
||||
#ifdef FEATURE_MONITOR_MODE_SUPPORT
|
||||
qdf_event_t qdf_monitor_mode_vdev_up_event;
|
||||
#endif
|
||||
|
@@ -4320,7 +4320,6 @@ struct hdd_adapter *hdd_wlan_create_ap_dev(struct hdd_context *hdd_ctx,
|
||||
{
|
||||
struct net_device *dev;
|
||||
struct hdd_adapter *adapter;
|
||||
QDF_STATUS qdf_status;
|
||||
|
||||
hdd_debug("iface_name = %s", iface_name);
|
||||
|
||||
@@ -4367,14 +4366,6 @@ struct hdd_adapter *hdd_wlan_create_ap_dev(struct hdd_context *hdd_ctx,
|
||||
adapter->wdev.wiphy = hdd_ctx->wiphy;
|
||||
adapter->wdev.netdev = dev;
|
||||
|
||||
qdf_status = qdf_event_create(
|
||||
&adapter->qdf_session_open_event);
|
||||
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
||||
hdd_err("failed to create session open QDF event!");
|
||||
free_netdev(adapter->dev);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
init_completion(&adapter->vdev_destroy_event);
|
||||
|
||||
SET_NETDEV_DEV(dev, hdd_ctx->parent_dev);
|
||||
|
@@ -6028,10 +6028,6 @@ hdd_alloc_station_adapter(struct hdd_context *hdd_ctx, tSirMacAddr mac_addr,
|
||||
adapter->magic = WLAN_HDD_ADAPTER_MAGIC;
|
||||
adapter->vdev_id = WLAN_UMAC_VDEV_ID_MAX;
|
||||
|
||||
qdf_status = qdf_event_create(&adapter->qdf_session_open_event);
|
||||
if (QDF_IS_STATUS_ERROR(qdf_status))
|
||||
goto free_net_dev;
|
||||
|
||||
qdf_status = hdd_monitor_mode_qdf_create_event(adapter, session_type);
|
||||
if (QDF_IS_STATUS_ERROR(qdf_status)) {
|
||||
hdd_err_rl("create monitor mode vdve up event failed");
|
||||
|
Reference in New Issue
Block a user