Browse Source

modminer: Remove dead code

Luke Dashjr 13 years ago
parent
commit
8c002c087e
1 changed files with 1 additions and 4 deletions
  1. 1 4
      driver-modminer.c

+ 1 - 4
driver-modminer.c

@@ -463,7 +463,7 @@ static void modminer_get_temperature(struct cgpu_info *modminer, struct thr_info
 #ifdef WIN32
 #ifdef WIN32
 	/* Workaround for bug in Windows driver */
 	/* Workaround for bug in Windows driver */
 	if (!modminer_reopen(modminer))
 	if (!modminer_reopen(modminer))
-		return -1;
+		return;
 #endif
 #endif
 
 
 	int fd = modminer->device_fd;
 	int fd = modminer->device_fd;
@@ -605,7 +605,6 @@ modminer_process_results(struct thr_info*thr)
 	struct cgpu_info*modminer = thr->cgpu;
 	struct cgpu_info*modminer = thr->cgpu;
 	struct modminer_fpga_state *state = thr->cgpu_data;
 	struct modminer_fpga_state *state = thr->cgpu_data;
 	char fpgaid = thr->device_thread;
 	char fpgaid = thr->device_thread;
-	int fd;
 	struct work *work = &state->running_work;
 	struct work *work = &state->running_work;
 
 
 	uint32_t nonce;
 	uint32_t nonce;
@@ -615,7 +614,6 @@ modminer_process_results(struct thr_info*thr)
 
 
 	mutex_lock(&modminer->device_mutex);
 	mutex_lock(&modminer->device_mutex);
 	modminer_get_temperature(modminer, thr);
 	modminer_get_temperature(modminer, thr);
-	fd = modminer->device_fd;
 
 
 	iter = 200;
 	iter = 200;
 	while (1) {
 	while (1) {
@@ -660,7 +658,6 @@ modminer_process_results(struct thr_info*thr)
 		if (work_restart(thr))
 		if (work_restart(thr))
 			break;
 			break;
 		mutex_lock(&modminer->device_mutex);
 		mutex_lock(&modminer->device_mutex);
-		fd = modminer->device_fd;
 	}
 	}
 
 
 	struct timeval tv_workend, elapsed;
 	struct timeval tv_workend, elapsed;