Преглед на файлове

qcacld-3.0: Remove wma_start() cds_ctx parameter

Currently wma_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: If6756ca37a7e4ec4ade1c72eea080f3bc89ad7e4
CRs-Fixed: 2109253
Jeff Johnson преди 7 години
родител
ревизия
d489255594
променени са 3 файла, в които са добавени 3 реда и са изтрити 4 реда
  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

@@ -840,7 +840,7 @@ QDF_STATUS cds_enable(struct wlan_objmgr_psoc *psoc, v_CONTEXT_t cds_context)
 	}
 
 	/* Start the wma */
-	qdf_status = wma_start(p_cds_context);
+	qdf_status = wma_start();
 	if (qdf_status != QDF_STATUS_SUCCESS) {
 		QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
 			  "%s: Failed to start wma", __func__);

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

@@ -100,7 +100,7 @@ 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 *cds_context);
+QDF_STATUS wma_start(void);
 
 QDF_STATUS wma_stop(void *cds_context, uint8_t reason);
 

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

@@ -3224,11 +3224,10 @@ fail:
 /**
  * wma_start() - wma start function.
  *               Intialize event handlers and timers.
- * @cds_ctx: cds context
  *
  * Return: 0 on success, QDF Error on failure
  */
-QDF_STATUS wma_start(void *cds_ctx)
+QDF_STATUS wma_start(void)
 {
 	QDF_STATUS qdf_status = QDF_STATUS_SUCCESS;
 	tp_wma_handle wma_handle;