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:
Sultan Alsawaf 2021-01-12 00:21:30 -08:00 committed by azrim
parent 0992e6df01
commit fe39ec00a0
No known key found for this signature in database
GPG Key ID: 497F8FB059B45D1C

View File

@ -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) {