qcacld-3.0: Fix static code analysis errors

Propagation from qcacld-2.0 to qcacld-3.0

Updated the wma, pe module to address the issues reported by static code
analysis.

Change-Id: I8666adf161225014108c189cbcffced9450ae0c4
CRs-Fixed: 889019
This commit is contained in:
Himanshu Agarwal 2015-10-19 19:16:19 +05:30 • committed by Satish Singh
commit 52fd87a38d
2 changed files with 6 additions and 1 deletions

View file

@ -1995,7 +1995,10 @@ CDF_STATUS wma_process_update_edca_param_req(WMA_HANDLE handle,
goto fail;
pdev = cds_get_context(CDF_MODULE_ID_TXRX);
ol_txrx_set_wmm_param(pdev, ol_tx_wmm_param);
if (pdev)
ol_txrx_set_wmm_param(pdev, ol_tx_wmm_param);
else
CDF_ASSERT(0);
return CDF_STATUS_SUCCESS;

View file

@ -64,6 +64,8 @@ int wma_ocb_set_config_resp(tp_wma_handle wma_handle, uint8_t status)
req->channel_count;
vdev->ocb_channel_info =
cdf_mem_malloc(buf_size);
if (!vdev->ocb_channel_info)
return -ENOMEM;
cdf_mem_zero(vdev->ocb_channel_info, buf_size);
for (i = 0; i < req->channel_count; i++) {
vdev->ocb_channel_info[i].chan_freq =