From acc1cc7a4e5d4ba59976e5a33729f0bd93f15744 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 13 Sep 2017 08:47:49 -0700 Subject: [PATCH] qcacld-3.0: Remove wma_stop() cds_ctx parameter Currently wma_stop() 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: Iba40ac86e5916be3b8c2a62cf5483c9b7a242be5 CRs-Fixed: 2109254 --- core/cds/src/cds_api.c | 4 ++-- core/wma/inc/wma_api.h | 2 +- core/wma/src/wma_main.c | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index 8b5046353c39..82c8b51a094f 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -909,7 +909,7 @@ err_mac_stop: err_wma_stop: qdf_event_reset(&(gp_cds_context->wmaCompleteEvent)); - qdf_status = wma_stop(p_cds_context, HAL_STOP_TYPE_RF_KILL); + qdf_status = wma_stop(HAL_STOP_TYPE_RF_KILL); if (!QDF_IS_STATUS_SUCCESS(qdf_status)) { QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR, "%s: Failed to stop wma", __func__); @@ -959,7 +959,7 @@ QDF_STATUS cds_disable(struct wlan_objmgr_psoc *psoc, v_CONTEXT_t cds_context) dispatcher_psoc_disable(psoc); - qdf_status = wma_stop(cds_context, HAL_STOP_TYPE_RF_KILL); + qdf_status = wma_stop(HAL_STOP_TYPE_RF_KILL); if (!QDF_IS_STATUS_SUCCESS(qdf_status)) { cds_err("Failed to stop wma"); diff --git a/core/wma/inc/wma_api.h b/core/wma/inc/wma_api.h index 763f24107070..46eb6f5836bc 100644 --- a/core/wma/inc/wma_api.h +++ b/core/wma/inc/wma_api.h @@ -102,7 +102,7 @@ QDF_STATUS wma_mc_process_handler(struct scheduler_msg *msg); QDF_STATUS wma_start(void); -QDF_STATUS wma_stop(void *cds_context, uint8_t reason); +QDF_STATUS wma_stop(uint8_t reason); QDF_STATUS wma_close(void *cds_context); diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 233f4ec69eec..f4f581b7a1d5 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -3470,12 +3470,11 @@ end: /** * wma_stop() - wma stop function. * cleanup timers and suspend target. - * @cds_ctx: cds context * @reason: reason for wma_stop. * * Return: 0 on success, QDF Error on failure */ -QDF_STATUS wma_stop(void *cds_ctx, uint8_t reason) +QDF_STATUS wma_stop(uint8_t reason) { tp_wma_handle wma_handle; QDF_STATUS qdf_status = QDF_STATUS_SUCCESS;