mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 21:19:04 -04:00
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:
parent
3bc886df40
commit
0158814ea9
1 changed files with 1 additions and 1 deletions
|
|
@ -8552,7 +8552,7 @@ static void __hdd_bus_bw_work_handler(struct hdd_context *hdd_ctx)
|
|||
A_STATUS ret;
|
||||
bool connected = false;
|
||||
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))
|
||||
goto stop_work;
|
||||
|
|
|
|||
Loading…
Reference in a new issue