Explorar el Código

qcacld-3.0: Remove un-used cds_context argument from post_disable

cds_post_disable does not use cds_context argument hence remove it.

Change-Id: I44f78b5544431c2ebe06748c058ecb2279711ff9
CRs-Fixed: 2008071
Rajeev Kumar hace 8 años
padre
commit
be0212444b
Se han modificado 3 ficheros con 4 adiciones y 5 borrados
  1. 1 1
      core/cds/inc/cds_api.h
  2. 1 2
      core/cds/src/cds_api.c
  3. 2 2
      core/hdd/src/wlan_hdd_main.c

+ 1 - 1
core/cds/inc/cds_api.h

@@ -219,7 +219,7 @@ QDF_STATUS cds_enable(struct wlan_objmgr_psoc *psoc, v_CONTEXT_t cds_context);
 
 QDF_STATUS cds_disable(struct wlan_objmgr_psoc *psoc, v_CONTEXT_t cds_context);
 
-QDF_STATUS cds_post_disable(v_CONTEXT_t cds_context);
+QDF_STATUS cds_post_disable(void);
 
 QDF_STATUS cds_close(struct wlan_objmgr_psoc *psoc, v_CONTEXT_t cds_context);
 

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

@@ -948,11 +948,10 @@ static inline void cds_suspend_target(tp_wma_handle wma_handle)
 
 /**
  * cds_post_disable() - post disable cds module
- * @cds_context: CDS context
  *
  * Return: QDF status
  */
-QDF_STATUS cds_post_disable(v_CONTEXT_t cds_context)
+QDF_STATUS cds_post_disable(void)
 {
 	tp_wma_handle wma_handle;
 	struct hif_opaque_softc *hif_ctx;

+ 2 - 2
core/hdd/src/wlan_hdd_main.c

@@ -2119,7 +2119,7 @@ int hdd_wlan_start_modules(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter,
 	return 0;
 
 post_disable:
-	cds_post_disable(hdd_ctx->pcds_context);
+	cds_post_disable();
 
 close:
 	hdd_ctx->driver_status = DRIVER_MODULES_CLOSED;
@@ -8960,7 +8960,7 @@ int hdd_wlan_stop_modules(hdd_context_t *hdd_ctx, bool ftm_mode)
 		goto done;
 	}
 
-	qdf_status = cds_post_disable(hdd_ctx->pcds_context);
+	qdf_status = cds_post_disable();
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
 		hdd_err("Failed to process post CDS disable Modules! :%d",
 			qdf_status);