linux_usbfs: libusb_init() should succeed if no devices are present
authorChris Dickens <christopher.a.dickens@gmail.com>
Thu, 28 Dec 2017 08:40:14 +0000 (00:40 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Thu, 28 Dec 2017 08:40:14 +0000 (00:40 -0800)
commit4d5df7091150b175f3dae1f09e306e29093dcf13
treeb5ce419d30c4049b32e37f824069e6ff26e0abc5
parent3dca96210446240af01612e77bedd5e16a65708c
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 #301

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/linux_usbfs.c
libusb/version_nano.h