From 4e2b107642bd5bf02cfb5274783651807561e7bf Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 8 Apr 2013 10:37:48 +1000 Subject: [PATCH] Reuse avalon_get_work_count variable. --- driver-avalon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver-avalon.c b/driver-avalon.c index 9724dca8..66455a02 100644 --- a/driver-avalon.c +++ b/driver-avalon.c @@ -934,7 +934,7 @@ static int64_t avalon_scanhash(struct thr_info *thr) elapsed.tv_sec, elapsed.tv_usec); } } - if (result_wrong >= info->miner_count && ret != AVA_GETS_RESTART) { + if (result_wrong >= avalon_get_work_count && ret != AVA_GETS_RESTART) { /* This mean FPGA controller gave all wrong results, so * try to reset the Avalon */ do_avalon_close(thr);