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
|
@ -31,7 +31,7 @@ do { \
|
||||||
udelay(_US_); \
|
udelay(_US_); \
|
||||||
} \
|
} \
|
||||||
if (!AQ_HW_WAIT_FOR_i) {\
|
if (!AQ_HW_WAIT_FOR_i) {\
|
||||||
err = ETIME; \
|
err = -ETIME; \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue