Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Fix trivial warnings in knc driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolivas committed Dec 23, 2013
1 parent 2d44807 commit 9ec4bb7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions driver-knc-spi-fpga.c
Expand Up @@ -337,8 +337,7 @@ static void stats_update(unsigned int *data, unsigned int *index, unsigned int c

static unsigned int get_accumulated_stats(unsigned int *data, unsigned int *index, unsigned int cur_index)
{
int i;
unsigned int res;
unsigned int res, i;

stats_zero_data_if_curindex_updated(data, index, cur_index);

Expand Down Expand Up @@ -387,9 +386,9 @@ static struct api_data *knc_api_stats(struct cgpu_info *cgpu)
{
struct knc_state *knc = cgpu->device_data;
struct api_data *root = NULL;
unsigned int cursize;
int asic, core, n;
char buf[4096];
int asic, core;
int cursize, n;
struct timespec ts_now;

clock_gettime(CLOCK_MONOTONIC, &ts_now);
Expand Down

0 comments on commit 9ec4bb7

Please sign in to comment.