Skip to content

Commit

Permalink
titan: Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Nov 10, 2014
1 parent 613b7eb commit de6e604
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions driver-titan.c
Expand Up @@ -219,7 +219,7 @@ static void get_nonce_range(int dieno, int coreno, uint32_t *nonce_bottom, uint3
if (!nonce_tops_inited) {
uint32_t top;
double nonce_f, nonce_step;
int die, core;
int core;

nonce_f = 0.0;
nonce_step = 4294967296.0 / KNC_TITAN_CORES_PER_DIE;
Expand Down Expand Up @@ -559,7 +559,7 @@ static void knc_titan_poll(struct thr_info * const thr)
struct thr_info *mythr;
struct cgpu_info * const cgpu = thr->cgpu, *proc;
struct knc_titan_info * const knc = cgpu->device_data;
struct knc_titan_core *knccore, *core1;
struct knc_titan_core *knccore;
struct work *work, *tmp;
int workaccept = 0;
unsigned long delay_usecs = KNC_POLL_INTERVAL_US;
Expand Down Expand Up @@ -639,7 +639,6 @@ static void knc_titan_poll(struct thr_info * const thr)
--knc->workqueue_size;
DL_DELETE(knc->workqueue, work);
work->device_id = MAKE_WORKID(asic, die, die_p->next_slot);
struct work *replaced_work;
struct work *work1, *tmp1;
HASH_ITER(hh, knc->devicework, work1, tmp1) {
if (work->device_id == work1->device_id) {
Expand Down

0 comments on commit de6e604

Please sign in to comment.