Prechádzať zdrojové kódy

asoc: sm6150: Initialize variable in msm_init_aux_dev

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]>
Aditya Bavanari 6 rokov pred
rodič
commit
32b3e5e2d6
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      asoc/sm6150.c

+ 1 - 1
asoc/sm6150.c

@@ -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;