Эх сурвалжийг харах

qcacld-3.0: Remove unnecessary get of CDS context in HDD

Currently in hdd_wlan_shutdown() and hdd_wlan_re_init() there are
calls to cds_get_global_context(), but the returned context isn't
actually used, so remove these calls.

Change-Id: I21b2a4955d926fe0694f4f8a3097d9a5d5bef02e
CRs-Fixed: 2117018
Jeff Johnson 7 жил өмнө
parent
commit
1bc784ad68

+ 0 - 16
core/hdd/src/wlan_hdd_power.c

@@ -1235,7 +1235,6 @@ static void hdd_ssr_restart_sap(struct hdd_context *hdd_ctx)
  */
 QDF_STATUS hdd_wlan_shutdown(void)
 {
-	v_CONTEXT_t p_cds_context = NULL;
 	struct hdd_context *hdd_ctx;
 	p_cds_sched_context cds_sched_context = NULL;
 	QDF_STATUS qdf_status;
@@ -1243,13 +1242,6 @@ QDF_STATUS hdd_wlan_shutdown(void)
 
 	hdd_info("WLAN driver shutting down!");
 
-	/* Get the global CDS context. */
-	p_cds_context = cds_get_global_context();
-	if (!p_cds_context) {
-		hdd_err("Global CDS context is Null");
-		return QDF_STATUS_E_FAILURE;
-	}
-
 	/* Get the HDD context. */
 	hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
 	if (!hdd_ctx) {
@@ -1371,7 +1363,6 @@ static void hdd_send_default_scan_ies(struct hdd_context *hdd_ctx)
 QDF_STATUS hdd_wlan_re_init(void)
 {
 
-	v_CONTEXT_t p_cds_context = NULL;
 	struct hdd_context *hdd_ctx = NULL;
 	struct hdd_adapter *pAdapter;
 	int ret;
@@ -1379,13 +1370,6 @@ QDF_STATUS hdd_wlan_re_init(void)
 
 	hdd_prevent_suspend(WIFI_POWER_EVENT_WAKELOCK_DRIVER_REINIT);
 
-	/* Get the CDS context */
-	p_cds_context = cds_get_global_context();
-	if (p_cds_context == NULL) {
-		hdd_err("Failed cds_get_global_context");
-		goto err_re_init;
-	}
-
 	/* Get the HDD context */
 	hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
 	if (!hdd_ctx) {