summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKomal Seelam <kseelam@qti.qualcomm.com>2015-02-23 12:11:48 +0530
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2015-02-27 15:12:36 +0530
commita441fcbb98dece371a437ccd36f3f43f3540a984 (patch)
tree852bb73b58c86eb0ab0e6b088fcfe528d8348bea
parent83168b042b421c886721aaa84d9344487e689a06 (diff)
qcacld-2.0: Fix Unnecessary memory allocation.
Fix unnecessary memory allocation for scan timeout. Change-Id: I2addd1082298f70d57b0a04dca9f88736d4ecafa CRs-Fixed: 798852
-rw-r--r--CORE/SERVICES/WMA/wma.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c
index 53f38e063c4e..cf26a4a30e49 100644
--- a/CORE/SERVICES/WMA/wma.c
+++ b/CORE/SERVICES/WMA/wma.c
@@ -25158,25 +25158,16 @@ VOS_STATUS wma_process_ch_avoid_update_req(tp_wma_handle wma_handle,
void wma_scan_completion_timeout(void *data)
{
tp_wma_handle wma_handle;
- tSirScanOffloadEvent *scan_event;
u_int8_t vdev_id;
WMA_LOGE("%s: Timeout occured for scan command", __func__);
wma_handle = (tp_wma_handle) data;
- scan_event = (tSirScanOffloadEvent *) vos_mem_malloc
- (sizeof(tSirScanOffloadEvent));
- if (!scan_event) {
- WMA_LOGE("%s: Memory allocation failed for tSirScanOffloadEvent", __func__);
- return;
- }
-
vdev_id = wma_handle->wma_scan_timer_info.vdev_id;
if (wma_handle->wma_scan_timer_info.scan_id !=
wma_handle->interfaces[vdev_id].scan_info.scan_id) {
- vos_mem_free(scan_event);
WMA_LOGE("%s: Scan ID mismatch", __func__);
return;
}