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

Several HDD callback functions call 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: I45921e6b09dcfb72db0ce6044c295d46a064d6e9
CRs-Fixed: 2102482
Dieser Commit ist enthalten in:
Jeff Johnson
2017-08-31 09:45:14 -07:00
committet von snandini
Ursprung 1f6df4d482
Commit 9e975c250f
2 geänderte Dateien mit 0 neuen und 21 gelöschten Zeilen

Datei anzeigen

@@ -7345,15 +7345,8 @@ void hdd_indicate_mgmt_frame(tSirSmeMgmtFrameInd *frame_ind)
{
struct hdd_context *hdd_ctx = NULL;
struct hdd_adapter *adapter = NULL;
void *cds_context = NULL;
int i;
/* Get the global VOSS context.*/
cds_context = cds_get_global_context();
if (!cds_context) {
hdd_err("Global CDS context is Null");
return;
}
/* Get the HDD context.*/
hdd_ctx = (struct hdd_context *)cds_get_context(QDF_MODULE_ID_HDD);

Datei anzeigen

@@ -424,16 +424,9 @@ static void wlan_hdd_tdls_discovery_timeout_peer_cb(void *userData)
struct list_head *pos, *q;
tdlsCtx_t *pHddTdlsCtx;
struct hdd_context *hdd_ctx;
v_CONTEXT_t cds_context;
ENTER();
cds_context = cds_get_global_context();
if (NULL == cds_context) {
hdd_err("cds_context points to NULL");
return;
}
hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
if (0 != (wlan_hdd_validate_context(hdd_ctx)))
return;
@@ -5894,7 +5887,6 @@ static void wlan_hdd_tdls_idle_handler(void *user_data)
hddTdlsPeer_t *curr_peer;
tdlsCtx_t *hdd_tdls_ctx;
struct hdd_context *hdd_ctx;
v_CONTEXT_t cds_context;
struct hdd_adapter *adapter;
if (!tdls_info->staId) {
@@ -5902,12 +5894,6 @@ static void wlan_hdd_tdls_idle_handler(void *user_data)
return;
}
cds_context = cds_get_global_context();
if (NULL == cds_context) {
hdd_err("cds_context points to NULL");
return;
}
hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
if (0 != (wlan_hdd_validate_context(hdd_ctx)))
return;