qcacld-3.0: Initialize uninitialized variable
Current code in __hdd_bus_bw_work_handler function there is a possibility of variables sta_tx_bytes and sap_tx_bytes uninitialized. Improve the code by initializing the variable. Change-Id: I6e21350267e9ff7a5b3a5cb5b3f3166d26121c8a CRs-Fixed: 2536318
This commit is contained in:
@@ -8552,7 +8552,7 @@ static void __hdd_bus_bw_work_handler(struct hdd_context *hdd_ctx)
|
|||||||
A_STATUS ret;
|
A_STATUS ret;
|
||||||
bool connected = false;
|
bool connected = false;
|
||||||
uint32_t ipa_tx_packets = 0, ipa_rx_packets = 0;
|
uint32_t ipa_tx_packets = 0, ipa_rx_packets = 0;
|
||||||
uint64_t sta_tx_bytes, sap_tx_bytes;
|
uint64_t sta_tx_bytes = 0, sap_tx_bytes = 0;
|
||||||
|
|
||||||
if (wlan_hdd_validate_context(hdd_ctx))
|
if (wlan_hdd_validate_context(hdd_ctx))
|
||||||
goto stop_work;
|
goto stop_work;
|
||||||
|
Reference in New Issue
Block a user