summaryrefslogtreecommitdiff
path: root/drivers/reset/reset-qcom-aoss.c
diff options
context:
space:
mode:
authorJeff Johnson <quic_jjohnson@quicinc.com>2024-05-04 11:52:08 -0700
committerKalle Valo <quic_kvalo@quicinc.com>2024-05-13 17:12:21 +0300
commitbb0b0a6b96e6de854cb1e349e17bd0e8bf421a59 (patch)
tree2d3a6a2a025b01c377477a9b5697b259f47a21fb /drivers/reset/reset-qcom-aoss.c
parentefd920f48d1f9c41368579d1a278e88c082cc233 (diff)
wifi: ath12k: initialize 'ret' in ath12k_qmi_load_file_target_mem()
smatch flagged the following issue: drivers/net/wireless/ath/ath12k/qmi.c:2619 ath12k_qmi_load_file_target_mem() error: uninitialized symbol 'ret'. The reality is that 'ret' is initialized in every path through ath12k_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 <quic_jjohnson@quicinc.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://msgid.link/20240504-qmi_load_file_target_mem-v1-1-069fc44c45eb@quicinc.com
Diffstat (limited to 'drivers/reset/reset-qcom-aoss.c')
0 files changed, 0 insertions, 0 deletions