소스 검색

qcacmn: initialize variables to address whunt compilation

This change is to initialize the variables to address
whunt compilation issue.

Change-Id: Ib2234137e436f1ddfe1163aed6e1d4b291f19189
CRs-Fixed: 3110041
Balaji Pothunoori 3 년 전
부모
커밋
ede155309e
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      umac/regulatory/core/src/reg_build_chan_list.c

+ 3 - 1
umac/regulatory/core/src/reg_build_chan_list.c

@@ -1551,7 +1551,9 @@ reg_modify_5g_maxbw(struct regulatory_channel *chan,
 		    struct ch_avoid_freq_type *avoid_freq)
 {
 	int i;
-	qdf_freq_t start, end, cur;
+	qdf_freq_t start = 0;
+	qdf_freq_t end = 0;
+	qdf_freq_t cur;
 	bool found = false;
 
 	for (i = 0; i < MAX_5G_CHAN_NUM; i++) {