commit | 8bf37d7a4d0b8e05a5fe6500c2e3c13eef2a99e7 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Fri May 05 18:19:21 2017 -0700 |
committer | Josh Gao <jmgao@google.com> | Mon May 08 13:50:58 2017 -0700 |
tree | ee5bcc125e5ad991956a18efa52107e92adda60a | |
parent | 5b8a92af5d4e014383a90a508d64607d37bc12b6 [diff] |
adb: properly handle libusb_clear_halt failure. The original code used continue to attempt to try to skip the current device, but there was an loop between the outside one and the continue. Move the device handling logic into a function and replace continue with return. Test: mma Change-Id: Iaa7f4b5ddc26d2ce03f1172d37d6307190b44412