Browse Source

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
Jeff Johnson 7 years ago
parent
commit
5be42abfb6
2 changed files with 2 additions and 12 deletions
  1. 0 2
      core/wma/inc/wma_api.h
  2. 2 10
      core/wma/src/wma_main.c

+ 0 - 2
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);

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