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); } /**