From d4892555941c6543f0ce1000db9e89d5bf94963d Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 13 Sep 2017 08:41:31 -0700 Subject: [PATCH] qcacld-3.0: Remove wma_start() cds_ctx parameter Currently wma_start() takes a cds_ctx parameter. At one time this was needed for the call to cds_get_context(), but that is no longer the case, so remove this unused parameter. Change-Id: If6756ca37a7e4ec4ade1c72eea080f3bc89ad7e4 CRs-Fixed: 2109253 --- core/cds/src/cds_api.c | 2 +- core/wma/inc/wma_api.h | 2 +- core/wma/src/wma_main.c | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index 4f518e472857..8b5046353c39 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -840,7 +840,7 @@ QDF_STATUS cds_enable(struct wlan_objmgr_psoc *psoc, v_CONTEXT_t cds_context) } /* Start the wma */ - qdf_status = wma_start(p_cds_context); + qdf_status = wma_start(); if (qdf_status != QDF_STATUS_SUCCESS) { QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR, "%s: Failed to start wma", __func__); diff --git a/core/wma/inc/wma_api.h b/core/wma/inc/wma_api.h index f5d37beb5cd0..763f24107070 100644 --- a/core/wma/inc/wma_api.h +++ b/core/wma/inc/wma_api.h @@ -100,7 +100,7 @@ QDF_STATUS wma_mc_process_msg(void *cds_context, struct scheduler_msg *msg); QDF_STATUS wma_mc_process_handler(struct scheduler_msg *msg); -QDF_STATUS wma_start(void *cds_context); +QDF_STATUS wma_start(void); QDF_STATUS wma_stop(void *cds_context, uint8_t reason); diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index a97c54a8f06c..233f4ec69eec 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -3224,11 +3224,10 @@ fail: /** * wma_start() - wma start function. * Intialize event handlers and timers. - * @cds_ctx: cds context * * Return: 0 on success, QDF Error on failure */ -QDF_STATUS wma_start(void *cds_ctx) +QDF_STATUS wma_start(void) { QDF_STATUS qdf_status = QDF_STATUS_SUCCESS; tp_wma_handle wma_handle;