mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
ASoC: codecs: Fix uninitialized variable usage
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by: Fiqri Ardyansyah <fiqri15072019@gmail.com> Signed-off-by: Forenche <prahul2003@gmail.com> Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
parent
0992e6df01
commit
fe39ec00a0
@ -2904,7 +2904,7 @@ static int wcd_cpe_send_param_snd_model(struct wcd_cpe_core *core,
|
||||
struct cmi_obm_msg obm_msg;
|
||||
struct cpe_param_data *param_d;
|
||||
|
||||
|
||||
memset(&obm_msg, 0, sizeof(obm_msg));
|
||||
ret = fill_cmi_header(&obm_msg.hdr, session->id,
|
||||
CMI_CPE_LSM_SERVICE_ID, 0, 20,
|
||||
CPE_LSM_SESSION_CMD_SET_PARAMS_V2, true);
|
||||
@ -3605,6 +3605,7 @@ static int wcd_cpe_lsm_eob(
|
||||
int ret = 0;
|
||||
struct cmi_hdr lab_eob;
|
||||
|
||||
memset(&lab_eob, 0, sizeof(lab_eob));
|
||||
if (fill_lsm_cmd_header_v0_inband(&lab_eob, session->id,
|
||||
0, CPE_LSM_SESSION_CMD_EOB)) {
|
||||
return -EINVAL;
|
||||
@ -4160,6 +4161,7 @@ static int wcd_cpe_send_afe_cal(void *core_handle,
|
||||
struct cmi_hdr *hdr = &(obm_msg.hdr);
|
||||
struct cmi_obm *pld = &(obm_msg.pld);
|
||||
|
||||
memset(&obm_msg, 0, sizeof(obm_msg));
|
||||
rc = wcd_cpe_afe_shmem_alloc(core, port_d,
|
||||
afe_cal->cal_data.size);
|
||||
if (rc) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user