From 8d9eba1470442c8720d3fc9ad97d1ce333083d8e Mon Sep 17 00:00:00 2001 From: Sarada Prasanna Garnayak Date: Fri, 4 Nov 2016 18:36:19 +0530 Subject: [PATCH] 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 --- hif/src/hif_napi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hif/src/hif_napi.c b/hif/src/hif_napi.c index 0574866a6725..90c04dec7365 100644 --- a/hif/src/hif_napi.c +++ b/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;