Przeglądaj źródła

qcacld-3.0: Do not get global context in hdd_svc_fw_shutdown_ind()

Currently hdd_svc_fw_shutdown_ind() calls cds_get_global_context() to
get the global context. At one time this was necessary since the
global context was required to get the module-specific context.
However the global context is no longer required, so remove the
unnecessary retrieval of the global context.

Change-Id: Ic61370c7d27860b0c6d51c8a610dc770c7c50b0a
CRs-Fixed: 2103618
Jeff Johnson 7 lat temu
rodzic
commit
7d89baed6d
1 zmienionych plików z 0 dodań i 6 usunięć
  1. 0 6
      core/hdd/src/wlan_hdd_power.c

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

@@ -1187,12 +1187,6 @@ next_adapter:
 void hdd_svc_fw_shutdown_ind(struct device *dev)
 {
 	struct hdd_context *hdd_ctx;
-	v_CONTEXT_t g_context;
-
-	g_context = cds_get_global_context();
-
-	if (!g_context)
-		return;
 
 	hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);