mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-09 14:28:12 +00:00
Transfer errors are filtered out in usbutils now so no need to look for them in NODEV checks.
This commit is contained in:
parent
2e11a50484
commit
42b3cf19c4
@ -20,15 +20,10 @@
|
|||||||
|
|
||||||
#define NODEV(err) ((err) == LIBUSB_ERROR_NO_DEVICE || \
|
#define NODEV(err) ((err) == LIBUSB_ERROR_NO_DEVICE || \
|
||||||
(err) == LIBUSB_ERROR_PIPE || \
|
(err) == LIBUSB_ERROR_PIPE || \
|
||||||
(err) == LIBUSB_ERROR_OTHER || \
|
(err) == LIBUSB_ERROR_OTHER)
|
||||||
(err) == LIBUSB_TRANSFER_NO_DEVICE || \
|
|
||||||
(err) == LIBUSB_TRANSFER_STALL || \
|
|
||||||
(err) == LIBUSB_TRANSFER_ERROR)
|
|
||||||
|
|
||||||
#define NOCONTROLDEV(err) ((err) == LIBUSB_ERROR_NO_DEVICE || \
|
#define NOCONTROLDEV(err) ((err) == LIBUSB_ERROR_NO_DEVICE || \
|
||||||
(err) == LIBUSB_ERROR_OTHER || \
|
(err) == LIBUSB_ERROR_OTHER)
|
||||||
(err) == LIBUSB_TRANSFER_NO_DEVICE || \
|
|
||||||
(err) == LIBUSB_TRANSFER_ERROR)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* WARNING - these assume DEVLOCK(cgpu, pstate) is called first and
|
* WARNING - these assume DEVLOCK(cgpu, pstate) is called first and
|
||||||
|
Loading…
Reference in New Issue
Block a user