mirror_ubuntu-kernels/drivers/net/wireless/ath
Alex Dewar 342b6194a7 ath11k: return error if firmware request fails
In ath11k_qmi_prepare_bdf_download(), ath11k_core_firmware_request() is
called, but the returned pointer is not checked for errors. Rather the
variable ret (which will always be zero) is checked by mistake. Fix
this and replace the various gotos with simple returns for clarity.

While we are at it, move the call to memset, as variable bd is not used
on all code paths.

Fixes: 7b57b2ddec ("ath11k: create a common function to request all firmware files")
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200825143040.233619-1-alex.dewar90@gmail.com
2020-08-27 13:18:48 +03:00
..
ar5523 treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
ath5k ath5k: convert tasklets to use new tasklet_setup() API 2020-08-27 13:15:25 +03:00
ath6kl ath6kl: wmi: Remove unused variable 'rate' 2020-08-27 13:15:50 +03:00
ath9k ath9k: Do not select MAC80211_LEDS by default 2020-08-27 13:18:07 +03:00
ath10k ath10k: Add new api to support reset TID config 2020-08-26 17:52:54 +03:00
ath11k ath11k: return error if firmware request fails 2020-08-27 13:18:48 +03:00
carl9170 ath: fix wiki website url 2020-06-09 09:25:25 +03:00
wcn36xx wcn36xx: Disable bmps when encryption is disabled 2020-08-27 13:14:54 +03:00
wil6210 Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2020-08-18 16:17:20 +03:00
ath.h
debug.c
dfs_pattern_detector.c ath: drop unnecessary list_empty 2020-08-14 18:05:06 +03:00
dfs_pattern_detector.h
dfs_pri_detector.c
dfs_pri_detector.h
hw.c
Kconfig Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2020-06-15 20:18:39 +03:00
key.c
main.c
Makefile ath11k: driver for Qualcomm IEEE 802.11ax devices 2019-11-25 14:16:34 +02:00
reg.h
regd_common.h ath: regd: add extra US coutry codes 2019-02-07 17:02:19 +02:00
regd.c ath: add support for special 0x0 regulatory domain 2019-12-02 12:08:01 +02:00
regd.h ath: drop duplicated define 2019-04-29 17:55:53 +03:00
spectral_common.h ath11k: add support for spectral scan 2020-06-15 17:21:54 +03:00
trace.c
trace.h