Skip to content

Commit 1a28242

Browse files
Colin Ian Kingdavem330
authored andcommitted
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>
1 parent f81e5ca commit 1a28242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/aquantia/atlantic/aq_hw_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ do { \
3131
udelay(_US_); \
3232
} \
3333
if (!AQ_HW_WAIT_FOR_i) {\
34-
err = ETIME; \
34+
err = -ETIME; \
3535
} \
3636
} while (0)
3737

0 commit comments

Comments
 (0)