diff options
author | Anton Protopopov <a.s.protopopov@gmail.com> | 2016-02-10 11:58:55 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2016-03-03 19:20:01 +0200 |
commit | 22baa98097df3eb92a51e8661fda5dd7c0f1eb93 (patch) | |
tree | abbca117d3ff7cab95053cb08e02985a9cd46342 /drivers/net/wireless/ath/ath10k/pci.c | |
parent | 18353749170033405790ed62a3ae2aa2d3d8a82a (diff) | |
download | lwn-22baa98097df3eb92a51e8661fda5dd7c0f1eb93.tar.gz lwn-22baa98097df3eb92a51e8661fda5dd7c0f1eb93.zip |
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/ath10k/pci.c')
-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; } |