Browse Source

qcacld-3.0: Remove pcds_context from struct hdd_context

The pcds_context field in struct hdd_context is no longer referenced,
so remove the field along with the code that currently initializes it.

Change-Id: Ibac0eedfa0c1e2bd170af9f91812fd25c0ab3ce7
CRs-Fixed: 2116985
Jeff Johnson 7 years ago
parent
commit
adbc45e87d
2 changed files with 0 additions and 13 deletions
  1. 0 3
      core/hdd/inc/wlan_hdd_main.h
  2. 0 10
      core/hdd/src/wlan_hdd_main.c

+ 0 - 3
core/hdd/inc/wlan_hdd_main.h

@@ -1566,9 +1566,6 @@ enum tos {
 
 /** Adapter structure definition */
 struct hdd_context {
-	/** Global CDS context  */
-	v_CONTEXT_t pcds_context;
-
 	struct wlan_objmgr_psoc *hdd_psoc;
 	struct wlan_objmgr_pdev *hdd_pdev;
 

+ 0 - 10
core/hdd/src/wlan_hdd_main.c

@@ -7781,25 +7781,15 @@ static struct hdd_context *hdd_context_create(struct device *dev)
 	QDF_STATUS status;
 	int ret = 0;
 	struct hdd_context *hdd_ctx;
-	v_CONTEXT_t p_cds_context;
 
 	ENTER();
 
-	p_cds_context = cds_get_global_context();
-	if (p_cds_context == NULL) {
-		hdd_err("Failed to get CDS global context");
-		ret = -EINVAL;
-		goto err_out;
-	}
-
 	hdd_ctx = hdd_cfg80211_wiphy_alloc(sizeof(struct hdd_context));
-
 	if (hdd_ctx == NULL) {
 		ret = -ENOMEM;
 		goto err_out;
 	}
 
-	hdd_ctx->pcds_context = p_cds_context;
 	hdd_ctx->parent_dev = dev;
 	hdd_ctx->last_scan_reject_session_id = 0xFF;