Commit f5e3448fb8132de94f4c3c2c7384f1a2c88e5161

Con Kolivas 2013-04-26T16:55:52

Reverse bools in bflsc_queue_full

diff --git a/driver-bflsc.c b/driver-bflsc.c
index 1730122..b367331 100644
--- a/driver-bflsc.c
+++ b/driver-bflsc.c
@@ -1444,15 +1444,16 @@ static bool bflsc_queue_full(struct cgpu_info *bflsc)
 		rd_unlock(&(sc_info->stat_lock));
 
 		// nothing needs work yet
-		if (dev == -1)
+		if (dev == -1) {
+			ret = true;
 			break;
+		}
 
 		work = get_queued(bflsc);
 		if (work) {
-			if (bflsc_send_work(bflsc, dev, work)) {
-				ret = true;
+			if (bflsc_send_work(bflsc, dev, work))
 				break;
-			} else
+			else
 				tried = dev;
 		} else
 			break;