From 1f8d0a0a9cb133ef24087a814733d6b1d9bfb01e Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 13 Sep 2017 08:09:05 -0700 Subject: [PATCH] qcacld-3.0: Remove wma_setneedshutdown() cds_ctx parameter Currently wma_setneedshutdown() 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: I65f2af2e97b09523f5cf00369b5cf95ad01194d9 CRs-Fixed: 2109252 --- core/cds/src/cds_api.c | 6 +++--- core/wma/inc/wma_api.h | 2 +- core/wma/src/wma_main.c | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index b3b340b2e532..4f518e472857 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -914,7 +914,7 @@ err_wma_stop: QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR, "%s: Failed to stop wma", __func__); QDF_ASSERT(QDF_IS_STATUS_SUCCESS(qdf_status)); - wma_setneedshutdown(cds_context); + wma_setneedshutdown(); } else { qdf_status = qdf_wait_single_event(&(gp_cds_context->wmaCompleteEvent), @@ -932,7 +932,7 @@ err_wma_stop: __func__); } QDF_ASSERT(0); - wma_setneedshutdown(cds_context); + wma_setneedshutdown(); } } @@ -964,7 +964,7 @@ QDF_STATUS cds_disable(struct wlan_objmgr_psoc *psoc, v_CONTEXT_t cds_context) if (!QDF_IS_STATUS_SUCCESS(qdf_status)) { cds_err("Failed to stop wma"); QDF_ASSERT(QDF_IS_STATUS_SUCCESS(qdf_status)); - wma_setneedshutdown(cds_context); + wma_setneedshutdown(); } handle = cds_get_context(QDF_MODULE_ID_PE); diff --git a/core/wma/inc/wma_api.h b/core/wma/inc/wma_api.h index 99c6d654de62..f5d37beb5cd0 100644 --- a/core/wma/inc/wma_api.h +++ b/core/wma/inc/wma_api.h @@ -116,7 +116,7 @@ int wma_rx_service_ready_event(void *handle, uint8_t *ev, uint32_t len); int wma_rx_service_ready_ext_event(void *handle, uint8_t *ev, uint32_t len); -void wma_setneedshutdown(void *cds_context); +void wma_setneedshutdown(void); bool wma_needshutdown(void); diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index a01ee714dfcd..a97c54a8f06c 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -5871,11 +5871,10 @@ int wma_rx_ready_event(void *handle, uint8_t *cmd_param_info, /** * wma_setneedshutdown() - setting wma needshutdown flag - * @cds_ctx: cds context * * Return: none */ -void wma_setneedshutdown(void *cds_ctx) +void wma_setneedshutdown(void) { tp_wma_handle wma_handle;