Commit 69a11508a4ee919b978d727d4be72ad1134083f2

Con Kolivas 2012-07-06T10:35:18

delay_time_ms is always set so need not be initialised in bitforce.

diff --git a/driver-bitforce.c b/driver-bitforce.c
index 17f892a..914a07f 100644
--- a/driver-bitforce.c
+++ b/driver-bitforce.c
@@ -21,7 +21,7 @@
 #include "miner.h"
 
 #define BITFORCE_SLEEP_MS 3000
-#define BITFORCE_TIMEOUT_MS 10000
+#define BITFORCE_TIMEOUT_MS 7000
 #define BITFORCE_LONG_TIMEOUT_MS 15000
 #define BITFORCE_CHECK_INTERVAL_MS 10
 #define WORK_CHECK_INTERVAL_MS 50
@@ -329,9 +329,9 @@ re_send:
 
 static uint64_t bitforce_get_result(struct thr_info *thr, struct work *work)
 {
-	unsigned int delay_time_ms = BITFORCE_CHECK_INTERVAL_MS;
 	struct cgpu_info *bitforce = thr->cgpu;
 	int fdDev = bitforce->device_fd;
+	unsigned int delay_time_ms;
 	char pdevbuf[0x100];
 	char *pnoncebuf;
 	uint32_t nonce;