Browse Source

qcacmn: Fix compilation error for msmcobalt_32

In hnc_link_clusters function, few local variables left
uninitialized. Initialize them with zero as they will get
overwritten during the processing of the cluster for first time.

CRs-Fixed: 1085510
Change-Id: I04af509bdc1a63eeb215c5ec854b55a8bc45aba9
Sarada Prasanna Garnayak 8 years ago
parent
commit
8d9eba1470
1 changed files with 3 additions and 3 deletions
  1. 3 3
      hif/src/hif_napi.c

+ 3 - 3
hif/src/hif_napi.c

@@ -858,12 +858,12 @@ static int hnc_link_clusters(struct qca_napi_data *napid)
 	int i;
 	int it = 0;
 	uint32_t cl_done = 0x0;
-	int cl, curcl, curclhead;
+	int cl, curcl, curclhead = 0;
 	int more;
 	unsigned int lilfrq = INT_MAX;
 	unsigned int bigfrq = 0;
-	unsigned int clfrq;
-	int prev;
+	unsigned int clfrq = 0;
+	int prev = 0;
 	struct qca_napi_cpu *cpus = napid->napi_cpu;
 
 	napid->lilcl_head = napid->bigcl_head = -1;