소스 검색

qcacmn: Initialize the local variable do_pm_get to false

Initialize the local variable do_pm_get to false to avoid using the
uninitialized variable potentially.

Change-Id: Ie45126b05afee1d4e5bb061189846bc8e301c2a6
CRs-fixed: 2215809
Tiger Yu 7 년 전
부모
커밋
054a6a4fd4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      htc/htc_send.c

+ 1 - 1
htc/htc_send.c

@@ -872,7 +872,7 @@ static void get_htc_send_packets(HTC_TARGET *target,
 	HTC_PACKET *pPacket;
 	HTC_PACKET *pPacket;
 	HTC_PACKET_QUEUE *tx_queue;
 	HTC_PACKET_QUEUE *tx_queue;
 	HTC_PACKET_QUEUE pm_queue;
 	HTC_PACKET_QUEUE pm_queue;
-	bool do_pm_get;
+	bool do_pm_get = false;
 
 
 	/*** NOTE : the TX lock is held when this function is called ***/
 	/*** NOTE : the TX lock is held when this function is called ***/
 	AR_DEBUG_PRINTF(ATH_DEBUG_SEND,
 	AR_DEBUG_PRINTF(ATH_DEBUG_SEND,