Re: [patch -mainline] sfc: fix a timeout loop

2015-12-15 Thread David Miller
From: Dan Carpenter Date: Tue, 15 Dec 2015 14:06:08 +0300 > We test for if "tries" is zero at the end but "tries--" is a post-op so > it will end with "tries" set to -1. I have changed it to a pre-op > instead. > > Signed-off-by: Dan Carpenter Applied. -- To unsubscribe from this list: send t

[patch -mainline] sfc: fix a timeout loop

2015-12-15 Thread Dan Carpenter
We test for if "tries" is zero at the end but "tries--" is a post-op so it will end with "tries" set to -1. I have changed it to a pre-op instead. Signed-off-by: Dan Carpenter diff --git a/drivers/net/ethernet/sfc/txc43128_phy.c b/drivers/net/ethernet/sfc/txc43128_phy.c index 3d5ee32..194f67d