aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--adb/usb_linux.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/adb/usb_linux.c b/adb/usb_linux.c
index cf78d80b..863af1df 100644
--- a/adb/usb_linux.c
+++ b/adb/usb_linux.c
@@ -269,11 +269,7 @@ static void find_usb_device(const char *base,
break;
} else {
// seek next interface descriptor
- if (i < interfaces - 1) {
- while (bufptr[1] != USB_DT_INTERFACE) {
- bufptr += bufptr[0];
- }
- }
+ bufptr += (USB_DT_ENDPOINT_SIZE * interface->bNumEndpoints);
}
} // end of for