OSDN Git Service

ath10k: fix erroneous return value
authorAnton Protopopov <a.s.protopopov@gmail.com>
Wed, 10 Feb 2016 16:58:55 +0000 (11:58 -0500)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 3 Mar 2016 17:20:01 +0000 (19:20 +0200)
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>
drivers/net/wireless/ath/ath10k/pci.c

index 0e338b6..b3cff1d 100644 (file)
@@ -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;
                }