Browse Source

dualminer: Remove unnecessary opt_sha2_number

Nate Woolls 12 years ago
parent
commit
39802c151e
3 changed files with 1 additions and 8 deletions
  1. 1 1
      driver-dualminer.c
  2. 0 2
      gc3355.c
  3. 0 5
      gc3355.h

+ 1 - 1
driver-dualminer.c

@@ -145,7 +145,7 @@ void dualminer_init_firstrun(struct cgpu_info *icarus)
 			info->Hs = DUALMINER_SCRYPT_DM_HASH_TIME;
 	}
 
-	applog(LOG_DEBUG, "%"PRIpreprv": dualminer: Init: pll=%d, sha2num=%d", icarus->proc_repr, opt_pll_freq, opt_sha2_number);
+	applog(LOG_DEBUG, "%"PRIpreprv": dualminer: Init: pll=%d, sha2num=%d", icarus->proc_repr, opt_pll_freq, opt_sha2_units);
 }
 
 // ICARUS_INFO functions - icarus-common.h

+ 0 - 2
gc3355.c

@@ -227,7 +227,6 @@ const char *scrypt_only_init_cmd[] =
 };
 
 int opt_pll_freq = 0; // default is set in gc3355_set_pll_freq
-int opt_sha2_number = 160;
 bool opt_dual_mode = false;
 
 void gc3355_reset_dtr(int fd)
@@ -387,7 +386,6 @@ void gc3355_open_sha2_units(int fd, int sha2_units)
 			gc3355_write(fd, ob_bin, 8);
 			cgsleep_ms(GC3355_COMMAND_DELAY_MS);
 		}
-		opt_sha2_number = unit_count;
 	}
 	else if (unit_count == 0)
 		gc3355_send_cmds(fd, sha2_gating_cmd);

+ 0 - 5
gc3355.h

@@ -30,11 +30,6 @@ extern int opt_sha2_units;
 extern
 int opt_pll_freq;
 
-//once this is made an option, needs to be >= 0 and <= 160
-//already enforced in gc3355 but no stdout yet
-extern
-int opt_sha2_number;
-
 //mining both Scrypt & SHA2 at the same time with two processes
 //SHA2 process must be run first, no arg requirements, first serial port will be used
 //Scrypt process must be launched after, --scrypt and --dual-mode args required