Browse Source

qcacld-3.0: Remove wma_pre_start() cds_ctx parameter

Currently wma_pre_start() 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: Ic4582ecafbee6fc1d0f8ebbf3c62ed8c7b47a179
CRs-Fixed: 2109255
Jeff Johnson 7 years ago
parent
commit
8ad89c6cd4
3 changed files with 3 additions and 4 deletions
  1. 1 1
      core/cds/src/cds_api.c
  2. 1 1
      core/wma/inc/wma_api.h
  3. 1 2
      core/wma/src/wma_main.c

+ 1 - 1
core/cds/src/cds_api.c

@@ -741,7 +741,7 @@ QDF_STATUS cds_pre_enable(void)
 	qdf_event_reset(&gp_cds_context->wmaCompleteEvent);
 
 	/*call WMA pre start */
-	qdf_status = wma_pre_start(gp_cds_context);
+	qdf_status = wma_pre_start();
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
 		QDF_TRACE(QDF_MODULE_ID_SYS, QDF_TRACE_LEVEL_FATAL,
 			  "Failed to WMA prestart");

+ 1 - 1
core/wma/inc/wma_api.h

@@ -94,7 +94,7 @@ struct wma_caps_per_phy {
 typedef void (*wma_peer_authorized_fp) (uint32_t vdev_id);
 
 
-QDF_STATUS wma_pre_start(void *cds_context);
+QDF_STATUS wma_pre_start(void);
 
 QDF_STATUS wma_mc_process_msg(void *cds_context, struct scheduler_msg *msg);
 

+ 1 - 2
core/wma/src/wma_main.c

@@ -2781,11 +2781,10 @@ err_wma_handle:
 
 /**
  * wma_pre_start() - wma pre start
- * @cds_ctx:  cds context
  *
  * Return: 0 on success, errno on failure
  */
-QDF_STATUS wma_pre_start(void *cds_ctx)
+QDF_STATUS wma_pre_start(void)
 {
 	QDF_STATUS qdf_status = QDF_STATUS_SUCCESS;
 	A_STATUS status = A_OK;