Initialize codec_max_aux_devs variable in msm_init_aux_dev function to avoid uninitialized variable usage. CRs-Fixed: 2357928 Change-Id: I4806f68dfaa9ea22c244fd6b102d8f0eed5abe0c Signed-off-by: Aditya Bavanari <[email protected]>
@@ -8063,7 +8063,7 @@ static int msm_init_aux_dev(struct platform_device *pdev,
struct device_node *aux_codec_of_node;
u32 wsa_max_devs;
u32 wsa_dev_cnt;
- u32 codec_max_aux_devs;
+ u32 codec_max_aux_devs = 0;
u32 codec_aux_dev_cnt = 0;
int i;
struct msm_wsa881x_dev_info *wsa881x_dev_info = NULL;