Commit 4fd53c9eb15cb603ba8837b20ab9383948582201

Paul Sheppard 2012-06-14T00:04:37

thread init fix

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/driver-bitforce.c b/driver-bitforce.c
index 61d7c0c..dc8fa6e 100644
--- a/driver-bitforce.c
+++ b/driver-bitforce.c
@@ -372,8 +372,9 @@ static bool bitforce_get_stats(struct cgpu_info *bitforce)
 
 static bool bitforce_thread_init(struct thr_info *thr)
 {
+	struct cgpu_info *bitforce = thr->cgpu;
 	unsigned int wait;
-	thr;
+
 	/* Pause each new thread a random time between 0-100ms 
 	so the devices aren't making calls all at the same time. */
 	wait = (rand() * MAX_START_DELAY_US)/RAND_MAX;