sfc: fix a timeout loop
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Dec 2015 11:06:08 +0000 (14:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Dec 2015 17:46:26 +0000 (12:46 -0500)
commitfe0be35e2cb6f8f43ae70ecc9fb372142fdf096b
tree57352ff5c8f6752309b72e076d4aa33f940de785
parent351434c6ba92e1fe7799a0c33c1412584a0fb3de
sfc: fix a timeout loop

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 <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/txc43128_phy.c