From 5be42abfb6ab66d9f67b22efe16a5f786a7857fa Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 13 Sep 2017 09:10:39 -0700 Subject: [PATCH] qcacld-3.0: Remove unused wma_mc_process_msg() parameter Currently wma_mc_process_msg() takes a cds_context parameter. At one time this parameter was needed, but that is no longer the case, so remove this now unused parameter. Change-Id: Ia460afc5db932274cd960485af93fc48e899ff35 CRs-Fixed: 2109258 --- core/wma/inc/wma_api.h | 2 -- core/wma/src/wma_main.c | 12 ++---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/core/wma/inc/wma_api.h b/core/wma/inc/wma_api.h index ab402e66d0bd..6ef553223773 100644 --- a/core/wma/inc/wma_api.h +++ b/core/wma/inc/wma_api.h @@ -96,8 +96,6 @@ typedef void (*wma_peer_authorized_fp) (uint32_t vdev_id); QDF_STATUS wma_pre_start(void); -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); diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 162c2c2ca59f..c50267f2e677 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -6720,12 +6720,11 @@ QDF_STATUS wma_get_chain_rssi(tp_wma_handle wma_handle, /** * wma_mc_process_msg() - process wma messages and call appropriate function. - * @cds_context: cds context * @msg: message * * Return: QDF_SUCCESS for success otherwise failure */ -QDF_STATUS wma_mc_process_msg(void *cds_context, struct scheduler_msg *msg) +static QDF_STATUS wma_mc_process_msg(struct scheduler_msg *msg) { QDF_STATUS qdf_status = QDF_STATUS_SUCCESS; tp_wma_handle wma_handle; @@ -7518,14 +7517,7 @@ end: QDF_STATUS wma_mc_process_handler(struct scheduler_msg *msg) { - void *cds_ctx = cds_get_global_context(); - - if (cds_ctx == NULL) { - QDF_TRACE(QDF_MODULE_ID_SYS, QDF_TRACE_LEVEL_ERROR, - "CDS context is NULL"); - return QDF_STATUS_E_FAILURE; - } - return wma_mc_process_msg(cds_ctx, msg); + return wma_mc_process_msg(msg); } /**