13
0

Fix thinko/typo bug introduced in e6c9bcfd07

This commit is contained in:
Robin Gareus 2019-09-05 14:56:39 +02:00
parent 01c5aa34c6
commit 97306e089b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -282,7 +282,7 @@ get_usb_device (uint16_t vendor_id, uint16_t product_id, libusb_device** device)
out:
libusb_free_device_list(devs, 1);
if (!dev && r != LIBUSB_SUCCESS) {
if (!dev && r == LIBUSB_SUCCESS) {
return LIBUSB_ERROR_NO_DEVICE;
}
return r;