From be0212444b9bf027de75b7c910b24c032391a5e1 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Thu, 16 Feb 2017 16:12:23 -0800 Subject: [PATCH] qcacld-3.0: Remove un-used cds_context argument from post_disable cds_post_disable does not use cds_context argument hence remove it. Change-Id: I44f78b5544431c2ebe06748c058ecb2279711ff9 CRs-Fixed: 2008071 --- core/cds/inc/cds_api.h | 2 +- core/cds/src/cds_api.c | 3 +-- core/hdd/src/wlan_hdd_main.c | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/core/cds/inc/cds_api.h b/core/cds/inc/cds_api.h index e58c09231b31..d62f555f7bdf 100644 --- a/core/cds/inc/cds_api.h +++ b/core/cds/inc/cds_api.h @@ -219,7 +219,7 @@ QDF_STATUS cds_enable(struct wlan_objmgr_psoc *psoc, v_CONTEXT_t cds_context); QDF_STATUS cds_disable(struct wlan_objmgr_psoc *psoc, v_CONTEXT_t cds_context); -QDF_STATUS cds_post_disable(v_CONTEXT_t cds_context); +QDF_STATUS cds_post_disable(void); QDF_STATUS cds_close(struct wlan_objmgr_psoc *psoc, v_CONTEXT_t cds_context); diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index 86c7ff6ddbc2..522c170f7dac 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -948,11 +948,10 @@ static inline void cds_suspend_target(tp_wma_handle wma_handle) /** * cds_post_disable() - post disable cds module - * @cds_context: CDS context * * Return: QDF status */ -QDF_STATUS cds_post_disable(v_CONTEXT_t cds_context) +QDF_STATUS cds_post_disable(void) { tp_wma_handle wma_handle; struct hif_opaque_softc *hif_ctx; diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index fbbf31a963ac..137fb5db375f 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2119,7 +2119,7 @@ int hdd_wlan_start_modules(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter, return 0; post_disable: - cds_post_disable(hdd_ctx->pcds_context); + cds_post_disable(); close: hdd_ctx->driver_status = DRIVER_MODULES_CLOSED; @@ -8960,7 +8960,7 @@ int hdd_wlan_stop_modules(hdd_context_t *hdd_ctx, bool ftm_mode) goto done; } - qdf_status = cds_post_disable(hdd_ctx->pcds_context); + qdf_status = cds_post_disable(); if (!QDF_IS_STATUS_SUCCESS(qdf_status)) { hdd_err("Failed to process post CDS disable Modules! :%d", qdf_status);