summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-02-03 01:28:42 +0000
committerElliott Hughes <enh@google.com>2017-02-03 01:28:42 +0000
commit35c1a6203e0300cf4097e4506f6cd0d40dc80e58 (patch)
tree182c185cffa7756d3aa809166d96bf4be234de81
parent81c24f6f869a19466052b29c501fd9cf8372b0b2 (diff)
downloadcore-35c1a6203e0300cf4097e4506f6cd0d40dc80e58.tar.gz
core-35c1a6203e0300cf4097e4506f6cd0d40dc80e58.tar.bz2
core-35c1a6203e0300cf4097e4506f6cd0d40dc80e58.zip
Revert "Get fastboot working on OS X"
This reverts commit 81c24f6f869a19466052b29c501fd9cf8372b0b2. Change-Id: If2f7220ff00582c3e1b38917352ab961ded48642
-rw-r--r--fastboot/usb_osx.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/fastboot/usb_osx.cpp b/fastboot/usb_osx.cpp
index 45ae833e5..7ae2aa5f5 100644
--- a/fastboot/usb_osx.cpp
+++ b/fastboot/usb_osx.cpp
@@ -293,13 +293,6 @@ static int try_device(io_service_t device, usb_handle *handle) {
// So, we have a device, finally. Grab its vitals.
-
- kr = (*dev)->USBDeviceOpen(dev);
- if (kr != 0) {
- WARN("USBDeviceOpen");
- goto out;
- }
-
kr = (*dev)->GetDeviceVendor(dev, &handle->info.dev_vendor);
if (kr != 0) {
ERR("GetDeviceVendor");
@@ -372,16 +365,12 @@ static int try_device(io_service_t device, usb_handle *handle) {
goto error;
}
- out:
-
- (*dev)->USBDeviceClose(dev);
(*dev)->Release(dev);
return 0;
error:
if (dev != NULL) {
- (*dev)->USBDeviceClose(dev);
(*dev)->Release(dev);
}