diff options
Diffstat (limited to 'lib/libusb')
-rw-r--r-- | lib/libusb/libusb10.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libusb/libusb10.c b/lib/libusb/libusb10.c index 0a7c1e6..f1b95d6 100644 --- a/lib/libusb/libusb10.c +++ b/lib/libusb/libusb10.c @@ -427,8 +427,7 @@ libusb_open_device_with_vid_pid(libusb_context *ctx, uint16_t vendor_id, */ if (pdesc->idVendor == vendor_id && pdesc->idProduct == product_id) { - if (libusb_open(devs[j], &pdev) < 0) - pdev = NULL; + libusb_open(devs[j], &pdev); break; } } |