From 6e67003e8766aa57195bdcbf346c6628b1ecdc97 Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Wed, 7 Mar 2018 17:29:33 -0800 Subject: [PATCH] qcacld-3.0: Fix PERF build issue in PMO (part 2) Building CLD3.2 with a performance configuration results in several "potentially uninitialized" warnings. Initialize the relevant variables to avoid the warnings. Change-Id: I6a4324cb313dfb9d3b4c82294bc2fc8ce357fd0b CRs-Fixed: 2202533 --- pmo/core/src/wlan_pmo_apf.c | 6 +++--- pmo/core/src/wlan_pmo_pkt_filter.c | 6 +++--- pmo/core/src/wlan_pmo_wow.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pmo/core/src/wlan_pmo_apf.c b/pmo/core/src/wlan_pmo_apf.c index bf67e3f865..8acc3c11f9 100644 --- a/pmo/core/src/wlan_pmo_apf.c +++ b/pmo/core/src/wlan_pmo_apf.c @@ -31,12 +31,12 @@ uint32_t pmo_get_apf_instruction_size(struct wlan_objmgr_psoc *psoc) { struct pmo_psoc_priv_obj *psoc_ctx; - bool enabled; + bool apf = false; pmo_psoc_with_ctx(psoc, psoc_ctx) { - enabled = pmo_intersect_apf(psoc_ctx); + apf = pmo_intersect_apf(psoc_ctx); } - return enabled ? PMO_APF_SIZE_AUTO : PMO_APF_SIZE_DISABLE; + return apf ? PMO_APF_SIZE_AUTO : PMO_APF_SIZE_DISABLE; } diff --git a/pmo/core/src/wlan_pmo_pkt_filter.c b/pmo/core/src/wlan_pmo_pkt_filter.c index 8aaa32e246..62268104a8 100644 --- a/pmo/core/src/wlan_pmo_pkt_filter.c +++ b/pmo/core/src/wlan_pmo_pkt_filter.c @@ -30,13 +30,13 @@ uint8_t pmo_get_num_packet_filters(struct wlan_objmgr_psoc *psoc) { struct pmo_psoc_priv_obj *psoc_ctx; - bool enabled; + bool pkt_filter = false; pmo_psoc_with_ctx(psoc, psoc_ctx) { - enabled = pmo_intersect_packet_filter(psoc_ctx); + pkt_filter = pmo_intersect_packet_filter(psoc_ctx); } - return enabled ? PMO_PKT_FILTERS_DEFAULT : PMO_PKT_FILTERS_DISABLED; + return pkt_filter ? PMO_PKT_FILTERS_DEFAULT : PMO_PKT_FILTERS_DISABLED; } QDF_STATUS pmo_core_set_pkt_filter(struct wlan_objmgr_psoc *psoc, diff --git a/pmo/core/src/wlan_pmo_wow.c b/pmo/core/src/wlan_pmo_wow.c index e1d2710328..4d589dd1c3 100644 --- a/pmo/core/src/wlan_pmo_wow.c +++ b/pmo/core/src/wlan_pmo_wow.c @@ -423,9 +423,9 @@ void pmo_set_sap_wow_bitmask(uint32_t *bitmask, uint32_t wow_bitmap_size) uint8_t pmo_get_num_wow_filters(struct wlan_objmgr_psoc *psoc) { struct pmo_psoc_priv_obj *psoc_ctx; - bool apf; - bool arp_ns; - bool pkt_filter; + bool apf = false; + bool arp_ns = false; + bool pkt_filter = false; pmo_psoc_with_ctx(psoc, psoc_ctx) { apf = pmo_intersect_apf(psoc_ctx);