From 054a6a4fd4ba8e58acbb438b220c34db9887f8f2 Mon Sep 17 00:00:00 2001 From: Tiger Yu Date: Fri, 30 Mar 2018 14:58:02 +0800 Subject: [PATCH] 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 --- htc/htc_send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htc/htc_send.c b/htc/htc_send.c index 5a7db7114853..1226c5229bd8 100644 --- a/htc/htc_send.c +++ b/htc/htc_send.c @@ -872,7 +872,7 @@ static void get_htc_send_packets(HTC_TARGET *target, HTC_PACKET *pPacket; HTC_PACKET_QUEUE *tx_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 ***/ AR_DEBUG_PRINTF(ATH_DEBUG_SEND,