Commit 3a91d8eb610fcd59d58e0eb28d718b3048a38d7b

Kano 2012-12-04T11:21:49

usbutils.c remove compiler warning

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/usbutils.c b/usbutils.c
index 36beb30..cc76937 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -1133,6 +1133,7 @@ int _usb_read(struct cgpu_info *cgpu, int ep, char *buf, size_t bufsiz, int *pro
 	}
 
 	tot = 0;
+	err = LIBUSB_SUCCESS;
 	while (bufsiz) {
 		got = 0;
 		STATS_TIMEVAL(&tv_start);