mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Remove unused variables.
This commit is contained in:
parent
f80c900336
commit
d34279b226
1
api.c
1
api.c
@ -3089,7 +3089,6 @@ static int itemstats(struct io_data *io_data, int i, char *id, struct cgminer_st
|
|||||||
if (cgpu) {
|
if (cgpu) {
|
||||||
#ifdef USE_USBUTILS
|
#ifdef USE_USBUTILS
|
||||||
char details[256];
|
char details[256];
|
||||||
int val;
|
|
||||||
|
|
||||||
if (cgpu->usbinfo.pipe_count)
|
if (cgpu->usbinfo.pipe_count)
|
||||||
snprintf(details, sizeof(details),
|
snprintf(details, sizeof(details),
|
||||||
|
@ -2345,7 +2345,6 @@ int _usb_read(struct cgpu_info *cgpu, int intinfo, int epinfo, char *buf, size_t
|
|||||||
int endlen;
|
int endlen;
|
||||||
unsigned char *ptr, *usbbuf = cgpu->usbinfo.bulkbuf;
|
unsigned char *ptr, *usbbuf = cgpu->usbinfo.bulkbuf;
|
||||||
size_t usbbufread;
|
size_t usbbufread;
|
||||||
int lock_wait;
|
|
||||||
|
|
||||||
DEVRLOCK(cgpu, pstate);
|
DEVRLOCK(cgpu, pstate);
|
||||||
|
|
||||||
@ -2620,7 +2619,6 @@ int _usb_write(struct cgpu_info *cgpu, int intinfo, int epinfo, char *buf, size_
|
|||||||
double max, done;
|
double max, done;
|
||||||
__maybe_unused bool first = true;
|
__maybe_unused bool first = true;
|
||||||
int err, sent, tot, pstate;
|
int err, sent, tot, pstate;
|
||||||
int lock_wait;
|
|
||||||
|
|
||||||
DEVRLOCK(cgpu, pstate);
|
DEVRLOCK(cgpu, pstate);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user