Skip to content

Commit

Permalink
net: ethernet: aquantia: return -ETIME in macro AQ_HW_WAIT_FOR
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and David S. Miller committed Jan 29, 2017
1 parent f81e5ca commit 1a28242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/aquantia/atlantic/aq_hw_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ do { \
udelay(_US_); \
} \
if (!AQ_HW_WAIT_FOR_i) {\
err = ETIME; \
err = -ETIME; \
} \
} while (0)

Expand Down

0 comments on commit 1a28242

Please sign in to comment.