ChangeSet 1.808.2.5, 2002/10/21 23:25:48-07:00, oliver@oenone.homelinux.org [PATCH] USB: microtek driver - remove dead code diff -Nru a/drivers/usb/image/microtek.c b/drivers/usb/image/microtek.c --- a/drivers/usb/image/microtek.c Mon Oct 28 13:56:11 2002 +++ b/drivers/usb/image/microtek.c Mon Oct 28 13:56:11 2002 @@ -915,10 +915,6 @@ 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 @@ { 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 );