summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNitesh Shah <niteshs@codeaurora.org>2017-02-06 16:40:19 +0530
committerqcabuildsw <qcabuildsw@localhost>2017-02-08 08:09:52 -0800
commitf3cf206c15291ca1a0e15c1f586ac0c5d8ddac79 (patch)
treeb1ddd6d2076c241657e65610ccfe10fcd9c62a2b
parent0d309b4c8cbddeb0dde4516b0ae9fe4f0c72fc73 (diff)
qcacld-3.0: Remove duplication of code in wlan_hdd_tdls_exit()
The propagation of the Change-ID I52c3e7b67c7f61160c54a1a6688db09f0137b7e1 has introduced duplication of the code in the function wlan_hdd_tdls_exit(). The change is to remove the duplicate code from this function. Change-Id: I50119396a98206b60c3d39f245a9fdf96fc0b695 CRs-Fixed: 2002676
-rw-r--r--core/hdd/src/wlan_hdd_tdls.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/core/hdd/src/wlan_hdd_tdls.c b/core/hdd/src/wlan_hdd_tdls.c
index 74899cd95d99..5db51dc16f8d 100644
--- a/core/hdd/src/wlan_hdd_tdls.c
+++ b/core/hdd/src/wlan_hdd_tdls.c
@@ -853,17 +853,6 @@ void wlan_hdd_tdls_exit(hdd_adapter_t *pAdapter)
return;
}
- pHddTdlsCtx = WLAN_HDD_GET_TDLS_CTX_PTR(pAdapter);
- if (NULL == pHddTdlsCtx) {
- /* TDLS context can be null and might have been freed up during
- * cleanup for STA adapter
- */
- hdd_info("pHddTdlsCtx is NULL, adapter device mode: %s(%d)",
- hdd_device_mode_to_string(pAdapter->device_mode),
- pAdapter->device_mode);
- goto done;
- }
-
cds_flush_delayed_work(&pHddCtx->tdls_scan_ctxt.tdls_scan_work);
mutex_lock(&pHddCtx->tdls_lock);