Revert "Get fastboot working on OS X"
This reverts commit 81c24f6f86
.
Change-Id: If2f7220ff00582c3e1b38917352ab961ded48642
This commit is contained in:
parent
81c24f6f86
commit
35c1a6203e
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue