diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-01-27 15:06:46 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-29 18:24:00 -0500 |
commit | 1a28242bac44b9eb24fb2e84131256cb3c63372c (patch) | |
tree | 2d3923c79d1c4e5b576ece38444fd9d4729c907d | |
parent | f81e5ca9155e8b4527662aa66ba984f58257ccdb (diff) |
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.h | 2 |
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) |