Просмотр исходного кода

qcacld-3.0: Remove wma_needshutdown() cds_ctx parameter

Currently wma_needshutdown() 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: I31fd07480719bf3401ed52b57951e19ccb4d143c
CRs-Fixed: 2109251
Jeff Johnson 7 лет назад
Родитель
Сommit
1b5404e93c
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

@@ -1119,7 +1119,7 @@ QDF_STATUS cds_close(struct wlan_objmgr_psoc *psoc, v_CONTEXT_t cds_context)
 
 	cds_shutdown_notifier_purge();
 
-	if (true == wma_needshutdown(cds_context)) {
+	if (true == wma_needshutdown()) {
 		QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
 				  "%s: Failed to shutdown wma", __func__);
 	} else {

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

@@ -118,7 +118,7 @@ int wma_rx_service_ready_ext_event(void *handle, uint8_t *ev, uint32_t len);
 
 void wma_setneedshutdown(void *cds_context);
 
-bool wma_needshutdown(void *cds_context);
+bool wma_needshutdown(void);
 
 QDF_STATUS wma_wait_for_ready_event(WMA_HANDLE handle);
 

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

@@ -5895,11 +5895,10 @@ void wma_setneedshutdown(void *cds_ctx)
 
 /**
  * wma_needshutdown() - Is wma needs shutdown?
- * @cds_ctx: cds context
  *
  * Return: returns true/false
  */
-bool wma_needshutdown(void *cds_ctx)
+bool wma_needshutdown(void)
 {
 	tp_wma_handle wma_handle;