summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-08-03 22:12:29 +0200
committerGravatar Nikias Bassen2009-08-03 22:12:29 +0200
commitbfdcd3a071fb73ac43715a2900db292f88d7cc47 (patch)
tree4c06776c0c3cd6cabe9dee80b4fd8f33fdc5886b
parent402191b92bcbd46293c2f7278eb4b52e0b4d4555 (diff)
downloadusbmuxd-bfdcd3a071fb73ac43715a2900db292f88d7cc47.tar.gz
usbmuxd-bfdcd3a071fb73ac43715a2900db292f88d7cc47.tar.bz2
Removed unused commented out code.
-rw-r--r--src/usbmux.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/usbmux.c b/src/usbmux.c
index ed23278..29f9879 100644
--- a/src/usbmux.c
+++ b/src/usbmux.c
@@ -219,50 +219,6 @@ static int usbmux_config_usb_device(usbmux_device_t device)
int bytes;
char buf[512];
-#if 0
- log_debug_msg("checking configuration...\n");
- if (device->__device->config->bConfigurationValue != 3) {
- log_debug_msg
- ("WARNING: usb device configuration is not 3 as expected!\n");
- }
-
- log_debug_msg("setting configuration...\n");
- ret = usb_set_configuration(device->device, 3);
- if (ret != 0) {
- log_debug_msg("Hm, usb_set_configuration returned %d: %s\n", ret,
- strerror(-ret));
-#if LIBUSB_HAS_GET_DRIVER_NP
- log_debug_msg("trying to fix:\n");
- log_debug_msg("-> detaching kernel driver... ");
- ret =
- usb_detach_kernel_driver_np(device->device,
- device->__device->config->
- interface->altsetting->
- bInterfaceNumber);
- if (ret != 0) {
- log_debug_msg("usb_detach_kernel_driver_np returned %d: %s\n",
- ret, strerror(-ret));
- } else {
- log_debug_msg("done.\n");
- log_debug_msg("setting configuration again... ");
- ret = usb_set_configuration(device->device, 3);
- if (ret != 0) {
- log_debug_msg
- ("Error: usb_set_configuration returned %d: %s\n", ret,
- strerror(-ret));
- log_debug_msg("--> trying to continue anyway...\n");
- } else {
- log_debug_msg("done.\n");
- }
- }
-#else
- log_debug_msg("--> trying to continue anyway...\n");
-#endif
- } else {
- log_debug_msg("done.\n");
- }
-#endif
-
log_debug_msg("claiming interface... ");
ret = usb_claim_interface(device->usbdev, 1);
if (ret != 0) {