diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-01-27 16:06:46 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-30 00:24:00 +0100 |
commit | 1a28242bac44b9eb24fb2e84131256cb3c63372c (patch) | |
tree | 2d3923c79d1c4e5b576ece38444fd9d4729c907d /drivers/net/ethernet/aquantia | |
parent | net: ethernet: aquantia: remove another redundant err check (diff) | |
download | linux-1a28242bac44b9eb24fb2e84131256cb3c63372c.tar.xz linux-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>
Diffstat (limited to 'drivers/net/ethernet/aquantia')
-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) |