1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-09-03 01:32:33 +00:00

Repeating on timeout in ztex could make the code never return.

This commit is contained in:
Con Kolivas 2012-08-17 16:42:14 +10:00
parent 0954a22995
commit 9065c63f40

View File

@ -618,7 +618,6 @@ int libztex_sendHashData(struct libztex_device *ztex, unsigned char *sendbuf)
ret -= cnt;
len += cnt;
} else
if (cnt != LIBUSB_ERROR_TIMEOUT)
break;
}
if (unlikely(cnt < 0))
@ -647,7 +646,6 @@ int libztex_readHashData(struct libztex_device *ztex, struct libztex_hash_data n
ret -= cnt;
len += cnt;
} else
if (cnt != LIBUSB_ERROR_TIMEOUT)
break;
}