mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
ath10k: fix erroneous return value
The ath10k_pci_hif_exchange_bmi_msg() function may return the positive value EIO instead of -EIO in case of error. Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
parent
1835374917
commit
22baa98097
1 changed files with 1 additions and 1 deletions
|
|
@ -1772,7 +1772,7 @@ int ath10k_pci_hif_exchange_bmi_msg(struct ath10k *ar,
|
|||
DMA_FROM_DEVICE);
|
||||
ret = dma_mapping_error(ar->dev, resp_paddr);
|
||||
if (ret) {
|
||||
ret = EIO;
|
||||
ret = -EIO;
|
||||
goto err_req;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue