Re: [patch] qlcnic: fix a loop exit condition better

2015-12-24 Thread David Miller
From: Dan Carpenter Date: Thu, 24 Dec 2015 12:21:22 +0300 > 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 Applied, thanks Dan. -- To unsubscrib

[patch] qlcnic: fix a loop exit condition better

2015-12-24 Thread Dan Carpenter
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 diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c b/drivers/net/ethernet/qlogic/qlcnic/ql