mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
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:
parent
2cd8292741
commit
52fd87a38d
2 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in a new issue