diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2011-12-03 16:19:07 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2011-12-03 16:19:07 +0000 |
| commit | dc934803060fbec758e8d9e5a9017cf3f701cdc9 (patch) | |
| tree | 0bf8be3e4e84f8adf5992d463458cedd3c3b8d1c /lib/libusb/libusb10.c | |
| parent | 494b6fec82302ead704cd0bc8e2af948f9dbde26 (diff) | |
Notes
Diffstat (limited to 'lib/libusb/libusb10.c')
| -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 0a7c1e6b157c..f1b95d68b265 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; } } |
