qlcnic: fix a loop exit condition better
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Dec 2015 09:21:22 +0000 (12:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Dec 2015 16:02:35 +0000 (11:02 -0500)
commit3358a5c0c1578fa215f90a0e750579cd6258ddd9
tree5c6e34a1101d9ae83020cde8a279a59ff7cf94e0
parent1dfddff5fcd869fcab0c52fafae099dfa435a935
qlcnic: fix a loop exit condition better

In the original code, if we succeeded on the last iteration through the
loop then we still returned failure.

Fixes: 389e4e04ad2d ('qlcnic: fix a timeout loop')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c