diff options
author | Thiraviyam Mariyappan <quic_tmariyap@quicinc.com> | 2023-01-17 13:03:18 +0100 |
---|---|---|
committer | Kalle Valo <quic_kvalo@quicinc.com> | 2023-01-18 07:37:55 +0100 |
commit | d1335f0dc18fed0ecbe59862d4706b4a9ddfc050 (patch) | |
tree | 53a1860a4e779af6d7e1f294fe3924a18ec35030 /drivers/net/wireless/ath/ath12k/dbring.c | |
parent | wifi: ath12k: wmi: delete PSOC_HOST_MAX_NUM_SS (diff) | |
download | linux-d1335f0dc18fed0ecbe59862d4706b4a9ddfc050.tar.xz linux-d1335f0dc18fed0ecbe59862d4706b4a9ddfc050.zip |
wifi: ath12k: Fix uninitilized variable clang warnings
Fix uninitilized variable warnings spotted during clang compilation.
Warnings:
drivers/net/wireless/ath/ath12k/mac.c:1076:8: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
drivers/net/wireless/ath/ath12k/dbring.c:272:7: warning: variable 'ring' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
drivers/net/wireless/ath/ath12k/dp_rx.c:2690:34: warning: variable 'i' is uninitialized when used here [-Wuninitialized]
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0-03171-QCAHKSWPL_SILICONZ-1
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Thiraviyam Mariyappan <quic_tmariyap@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20221221105529.19345-2-quic_tmariyap@quicinc.com
Diffstat (limited to 'drivers/net/wireless/ath/ath12k/dbring.c')
-rw-r--r-- | drivers/net/wireless/ath/ath12k/dbring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath12k/dbring.c b/drivers/net/wireless/ath/ath12k/dbring.c index 9aa2631be1a8..8fbf868e6f7e 100644 --- a/drivers/net/wireless/ath/ath12k/dbring.c +++ b/drivers/net/wireless/ath/ath12k/dbring.c @@ -230,7 +230,7 @@ int ath12k_dbring_get_cap(struct ath12k_base *ab, int ath12k_dbring_buffer_release_event(struct ath12k_base *ab, struct ath12k_dbring_buf_release_event *ev) { - struct ath12k_dbring *ring; + struct ath12k_dbring *ring = NULL; struct hal_srng *srng; struct ath12k *ar; struct ath12k_dbring_element *buff; |