return 0;
//LCOV_EXCL_START System Error
-free_eps :
+free_eps:
while (--i >= 0)
free_ep(eps + i);
free(eps);
return 0;
//LCOV_EXCL_START System Error
-free_alts :
+free_alts:
while (--i >= 0)
free_altsetting(alts + i);
free(alts);
return 0;
//LCOV_EXCL_START System Error
-free_interfaces :
+free_interfaces:
while (--i >= 0)
free_interface(interfaces + i);
free(interfaces);
return USB_HOST_ERROR_NONE;
//LCOV_EXCL_START System Error
-free_ctx :
+free_ctx:
free(_ctx);
ret = translate_error(ret);
out:
return USB_HOST_ERROR_NONE;
//LCOV_EXCL_START System Error
-close_handle :
+close_handle:
libusb_close(ldev_handle);
out:
_E("Failed to open device with given parameters");
return USB_HOST_ERROR_NONE;
//LCOV_EXCL_START System Error
-free_dev_list :
+free_dev_list:
while (--i >= 0)
usb_host_unref_device(list[i]);
free(list);
return 0;
//LCOV_EXCL_START System Error
-claim_failed :
+claim_failed:
if (driver_detached)
libusb_attach_kernel_driver(lusb_dev_handle,
interface_number);