forked from libusb/libusb
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux_usbfs: libusb_init() should succeed if no devices are present
When using sysfs to scan for devices, libusb_init() will fail if there are no USB devices present. There is no reason for this behavior, so this commit modifies the logic to only return an error if one or more devices are present but none could be successfully enumerated. Closes libusb#301 Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
- Loading branch information
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
#define LIBUSB_NANO 11232 | ||
#define LIBUSB_NANO 11233 |