Эх сурвалжийг харах

qcacmn: Fix compilation error due to uninitialized variable

Fix compilation error due to uninitialized variable(write_index)
in hif_ce_bus_late_resume function.

Change-Id: Ia69e56cf74f2970dd0c047740d6499bb5ce07563
CRs-Fixed: 2317219
Nirav Shah 6 жил өмнө
parent
commit
eeb9962b24
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      hif/src/ce/ce_main.c

+ 1 - 1
hif/src/ce/ce_main.c

@@ -1130,7 +1130,7 @@ int hif_ce_bus_late_resume(struct hif_softc *scn)
 {
 	int ce_id;
 	struct CE_state *ce_state;
-	int write_index;
+	int write_index = 0;
 	bool index_updated;
 
 	for (ce_id = 0; ce_id < scn->ce_count; ce_id++) {