From 960766f08ea314d89390aee1fe540e0f67ededfd Mon Sep 17 00:00:00 2001 From: Nitesh Shah Date: Mon, 6 Feb 2017 16:40:19 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_tdls.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/hdd/src/wlan_hdd_tdls.c b/core/hdd/src/wlan_hdd_tdls.c index 7327b0fea6b3..7eb63120cab9 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);