diff options
| author | Poddar, Siddarth <siddpodd@codeaurora.org> | 2016-10-27 13:57:17 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-11-04 19:34:14 -0700 |
| commit | a459e2e9f875925e64e733a63b7f9dbbfe5beeaf (patch) | |
| tree | afb1cd29278a739cc9bdf985ae87fa3b2f935305 | |
| parent | 01c85dc5c2f76e93e7077d4c55c5d1f48f770514 (diff) | |
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
| -rw-r--r-- | hif/src/hif_napi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hif/src/hif_napi.c b/hif/src/hif_napi.c index 04de9598c468..42975c3112ea 100644 --- a/hif/src/hif_napi.c +++ b/hif/src/hif_napi.c @@ -735,12 +735,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; |
