aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorJeff Johnson <[email protected]>2024-05-04 11:52:09 -0700
committerKalle Valo <[email protected]>2024-05-13 17:12:21 +0300
commit199f149e97dc7be80e5eed4b232529c1d1aa8055 (patch)
tree4a908830dd17847974707f00b644232f457481a7 /tools/perf/scripts/python/event_analyzing_sample.py
parentbb0b0a6b96e6de854cb1e349e17bd0e8bf421a59 (diff)
wifi: ath11k: initialize 'ret' in ath11k_qmi_load_file_target_mem()
smatch flagged the following issue: drivers/net/wireless/ath/ath11k/qmi.c:2401 ath11k_qmi_load_file_target_mem() error: uninitialized symbol 'ret'. The reality is that 'ret' is initialized in every path through ath11k_qmi_load_file_target_mem() except one, the case where the input 'len' is 0, and hence the "while (remaining)" loop is never entered. But to make sure this case is also handled, add an initializer to the declaration of 'ret'. No functional changes, compile tested only. Signed-off-by: Jeff Johnson <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions