Browse Source

thread init fix

Paul Sheppard 13 years ago
parent
commit
4fd53c9eb1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      driver-bitforce.c

+ 2 - 1
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;