Merge "adb: don't reset usb when connecting it." am: 4b8087aeb2 am: 0c1bad300c

am: e7affdc47c

Change-Id: Ibe2772d021a51281263a0bdaf83d2157b71f03e6
This commit is contained in:
Yabin Cui 2017-04-04 20:21:51 +00:00 committed by android-build-merger
commit 7ecf6c0e79
1 changed files with 0 additions and 8 deletions

View File

@ -306,14 +306,6 @@ static void poll_for_devices() {
}
device_serial.resize(rc);
// Try to reset the device.
rc = libusb_reset_device(handle_raw);
if (rc != 0) {
LOG(WARNING) << "failed to reset opened device '" << device_serial
<< "': " << libusb_error_name(rc);
continue;
}
// WARNING: this isn't released via RAII.
rc = libusb_claim_interface(handle.get(), interface_num);
if (rc != 0) {