summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libusb1-glue.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libusb1-glue.c b/src/libusb1-glue.c
index 7d1fdc0..45572f7 100644
--- a/src/libusb1-glue.c
+++ b/src/libusb1-glue.c
@@ -599,13 +599,11 @@ int LIBMTP_Check_Specific_Device(int busno, int devno)
nrofdevs = libusb_get_device_list (NULL, &devs);
for (i = 0; i < nrofdevs ; i++ ) {
-
if (libusb_get_bus_number(devs[i]) != busno)
- continue;
+ continue;
if (libusb_get_device_address(devs[i]) != devno)
- continue;
-
- if (probe_device_descriptor(devs[i], NULL))
+ continue;
+ if (probe_device_descriptor(devs[i], NULL))
return 1;
}
return 0;