diff options
| author | Alex Dewar <[email protected]> | 2020-08-25 15:30:39 +0100 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2020-08-27 13:18:48 +0300 |
| commit | 342b6194a75b33443bec7ed598e5f08f52f66efd (patch) | |
| tree | 70994d72dfccf5c5c037d46ba60cf259cb97f468 /tools/perf/scripts/python | |
| parent | 72cdab808714b1ec24b0c7bdebed163ce791f01f (diff) | |
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: 7b57b2ddec21 ("ath11k: create a common function to request all firmware files")
Signed-off-by: Alex Dewar <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions