mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 05:55:02 +08: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
@ -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 New Issue
Block a user