]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qlcnic: fix a loop exit condition better
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Dec 2015 09:21:22 +0000 (12:21 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 18:31:20 +0000 (11:31 -0700)
commitc16e07a248b4cd28ae314020cdcb59cecb343105
treebbc9b63c792548ee9713dbeb27227b6dde5ff82e
parent662e34d1d0e7deaf585e217ba5df60602ec2dddd
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>
Orabug: 23711389
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c