From e7fc03865b69f0f8570bdcbfc35dda5c1cbd25b3 Mon Sep 17 00:00:00 2001 From: Yingying Tang Date: Tue, 27 Sep 2016 14:18:26 +0800 Subject: qcacld-3.0: Remove the unnecessary compiler marco Propagate from qcacld-2.0 to qcacld-3.0 In WLANSAP_ScanCallback(), the local variable event is contained in a unnecessary compiler marco. Remove it to avoid some compilation error risk. Change-Id: Ia3249c464f909896af5f242510742c68ad02cc5a CRs-Fixed: 979671 --- core/sap/src/sap_api_link_cntl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/sap/src/sap_api_link_cntl.c b/core/sap/src/sap_api_link_cntl.c index 9a62d3413c55..6bf5679ff13b 100644 --- a/core/sap/src/sap_api_link_cntl.c +++ b/core/sap/src/sap_api_link_cntl.c @@ -106,10 +106,8 @@ QDF_STATUS wlansap_scan_callback(tHalHandle hal_handle, tWLAN_SAPEvent sapEvent; /* State machine event */ uint8_t operChannel = 0; QDF_STATUS sap_sm_status; - -#ifdef SOFTAP_CHANNEL_RANGE uint32_t event; -#endif + if (NULL == hal_handle) { QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR, -- cgit v1.2.3