diff options
author | Anton Protopopov <a.s.protopopov@gmail.com> | 2016-02-10 19:58:55 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2016-03-03 20:20:01 +0300 |
commit | 22baa98097df3eb92a51e8661fda5dd7c0f1eb93 (patch) | |
tree | abbca117d3ff7cab95053cb08e02985a9cd46342 /drivers/net/wireless/ath | |
parent | 18353749170033405790ed62a3ae2aa2d3d8a82a (diff) | |
download | linux-22baa98097df3eb92a51e8661fda5dd7c0f1eb93.tar.xz |
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>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 0e338b657210..b3cff1d3364a 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -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; } |