Commit cc98907e authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

[PATCH] USB: microtek driver - remove dead code

parent 236d8160
......@@ -915,10 +915,6 @@ static int mts_usb_probe (struct usb_interface *intf,
return -ENODEV;
}
/* I don't understand the following fully (it's from usb-storage) -- John */
/* set the interface -- STALL is an acceptable response here */
result = usb_set_interface(dev, altsetting->bInterfaceNumber, 0);
MTS_DEBUG("usb_set_interface returned %d.\n",result);
......@@ -926,12 +922,7 @@ static int mts_usb_probe (struct usb_interface *intf,
{
case 0: /* no error */
break;
case -EPIPE:
usb_clear_halt(dev, usb_sndctrlpipe(dev, 0));
MTS_DEBUG( "clearing clearing stall on control interface\n" );
break;
default:
MTS_DEBUG( "unknown error %d from usb_set_interface\n",
(int)result );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment