From adbc45e87d8533bceed167499ea8bbdf1aba3793 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Tue, 26 Sep 2017 12:55:14 -0700 Subject: [PATCH] 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 --- core/hdd/inc/wlan_hdd_main.h | 3 --- core/hdd/src/wlan_hdd_main.c | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 41f41945ea..612deef8f9 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/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; diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index bd2243225b..d3e4f65c88 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/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;