mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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>
This commit is contained in:
parent
f81e5ca915
commit
1a28242bac
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ do { \
|
|||
udelay(_US_); \
|
||||
} \
|
||||
if (!AQ_HW_WAIT_FOR_i) {\
|
||||
err = ETIME; \
|
||||
err = -ETIME; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue