Commit d34279b226cb9b8be7f706e3bb274ff14c3e50b0

Con Kolivas 2013-10-08T20:48:26

Remove unused variables.

diff --git a/api.c b/api.c
index 9813029..ffbf4a1 100644
--- a/api.c
+++ b/api.c
@@ -3089,7 +3089,6 @@ static int itemstats(struct io_data *io_data, int i, char *id, struct cgminer_st
 	if (cgpu) {
 #ifdef USE_USBUTILS
 		char details[256];
-		int val;
 
 		if (cgpu->usbinfo.pipe_count)
 			snprintf(details, sizeof(details),
diff --git a/usbutils.c b/usbutils.c
index 8c66c59..41c4ef4 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -2345,7 +2345,6 @@ int _usb_read(struct cgpu_info *cgpu, int intinfo, int epinfo, char *buf, size_t
 	int endlen;
 	unsigned char *ptr, *usbbuf = cgpu->usbinfo.bulkbuf;
 	size_t usbbufread;
-	int lock_wait;
 
 	DEVRLOCK(cgpu, pstate);
 
@@ -2620,7 +2619,6 @@ int _usb_write(struct cgpu_info *cgpu, int intinfo, int epinfo, char *buf, size_
 	double max, done;
 	__maybe_unused bool first = true;
 	int err, sent, tot, pstate;
-	int lock_wait;
 
 	DEVRLOCK(cgpu, pstate);