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
This commit is contained in:
Nitesh Shah 2017-02-06 16:40:19 +05:30 • committed by qcabuildsw
commit 960766f08e

View file

@ -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);