ath11k: fix uninitialized return in ath11k_spectral_process_data()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 8 Sep 2020 06:22:03 +0000 (09:22 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 9 Sep 2020 06:49:12 +0000 (09:49 +0300)
commitc7187acc3cd08a17e7b506b2b5277f42d1504d29
tree8d4d041c45d6ba2453f0c7378695901463edcb70
parent7e8453e35e406981d7c529ff8f804285bc894ba3
ath11k: fix uninitialized return in ath11k_spectral_process_data()

There is a success path where "ret" isn't initialized where we never
have a ATH11K_SPECTRAL_TAG_SCAN_SEARCH and then ret isn't initialized.

Fixes: 9d11b7bff950 ("ath11k: add support for spectral scan")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200619142922.GA267142@mwanda
drivers/net/wireless/ath/ath11k/spectral.c