summaryrefslogtreecommitdiffstats
path: root/src/usbmux.c
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 /src/usbmux.c
parent402191b92bcbd46293c2f7278eb4b52e0b4d4555 (diff)
downloadusbmuxd-bfdcd3a071fb73ac43715a2900db292f88d7cc47.tar.gz
usbmuxd-bfdcd3a071fb73ac43715a2900db292f88d7cc47.tar.bz2
Removed unused commented out code.
Diffstat (limited to 'src/usbmux.c')
-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)
219 int bytes; 219 int bytes;
220 char buf[512]; 220 char buf[512];
221 221
222#if 0
223 log_debug_msg("checking configuration...\n");
224 if (device->__device->config->bConfigurationValue != 3) {
225 log_debug_msg
226 ("WARNING: usb device configuration is not 3 as expected!\n");
227 }
228
229 log_debug_msg("setting configuration...\n");
230 ret = usb_set_configuration(device->device, 3);
231 if (ret != 0) {
232 log_debug_msg("Hm, usb_set_configuration returned %d: %s\n", ret,
233 strerror(-ret));
234#if LIBUSB_HAS_GET_DRIVER_NP
235 log_debug_msg("trying to fix:\n");
236 log_debug_msg("-> detaching kernel driver... ");
237 ret =
238 usb_detach_kernel_driver_np(device->device,
239 device->__device->config->
240 interface->altsetting->
241 bInterfaceNumber);
242 if (ret != 0) {
243 log_debug_msg("usb_detach_kernel_driver_np returned %d: %s\n",
244 ret, strerror(-ret));
245 } else {
246 log_debug_msg("done.\n");
247 log_debug_msg("setting configuration again... ");
248 ret = usb_set_configuration(device->device, 3);
249 if (ret != 0) {
250 log_debug_msg
251 ("Error: usb_set_configuration returned %d: %s\n", ret,
252 strerror(-ret));
253 log_debug_msg("--> trying to continue anyway...\n");
254 } else {
255 log_debug_msg("done.\n");
256 }
257 }
258#else
259 log_debug_msg("--> trying to continue anyway...\n");
260#endif
261 } else {
262 log_debug_msg("done.\n");
263 }
264#endif
265
266 log_debug_msg("claiming interface... "); 222 log_debug_msg("claiming interface... ");
267 ret = usb_claim_interface(device->usbdev, 1); 223 ret = usb_claim_interface(device->usbdev, 1);
268 if (ret != 0) { 224 if (ret != 0) {