summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-01-27 15:06:46 +0000
committerDavid S. Miller <davem@davemloft.net>2017-01-29 18:24:00 -0500
commit1a28242bac44b9eb24fb2e84131256cb3c63372c (patch)
tree2d3923c79d1c4e5b576ece38444fd9d4729c907d
parentf81e5ca9155e8b4527662aa66ba984f58257ccdb (diff)
downloadlinux-stable-1a28242bac44b9eb24fb2e84131256cb3c63372c.tar.gz
linux-stable-1a28242bac44b9eb24fb2e84131256cb3c63372c.tar.bz2
linux-stable-1a28242bac44b9eb24fb2e84131256cb3c63372c.zip
net: ethernet: aquantia: return -ETIME in macro AQ_HW_WAIT_FOR
The macro is returning ETIME which means various checks to see if the returned err is less than zero never work. I believe a -ETIME should be returned instead. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/aquantia/atlantic/aq_hw_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_hw_utils.h b/drivers/net/ethernet/aquantia/atlantic/aq_hw_utils.h
index 78fcc0c3ab4d..03b72ddbffb9 100644
--- a/drivers/net/ethernet/aquantia/atlantic/aq_hw_utils.h
+++ b/drivers/net/ethernet/aquantia/atlantic/aq_hw_utils.h
@@ -31,7 +31,7 @@ do { \
udelay(_US_); \
} \
if (!AQ_HW_WAIT_FOR_i) {\
- err = ETIME; \
+ err = -ETIME; \
} \
} while (0)