Re: [PATCH] ath11k: return error if firmware request fails

2020-08-27 Thread Kalle Valo
Alex Dewar wrote: > 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 c

[PATCH] ath11k: return error if firmware request fails

2020-08-25 Thread Alex Dewar
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,