]> git.baikalelectronics.ru Git - kernel.git/commit
USB: option: remove unnecessary and erroneous code
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 9 Jul 2009 16:58:43 +0000 (12:58 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 12 Jul 2009 22:16:40 +0000 (15:16 -0700)
commite0a66d9186409443454e5c7dd76fbeb78ff8f185
treeae123a40cb9957c1ff47f832a500ae4343cf5a6e
parent007b3e97b6412359f991bc352e22cfdc346b7148
USB: option: remove unnecessary and erroneous code

This patch (as1264) removes a bunch of unnecessary and erroneous stuff
from the option USB-serial driver.  Clearly there's no need to verify
that the device pointer stored in the URBs is right or to store the
same pointer over again.  After all, the pointer can't change once it
has been set up.

There's also no need to call usb_clear_halt for the IN endpoint
multiple times -- in fact, doing so is an error since every time after
the first there will be active URBs queued for that endpoint.  Since
the Clear-Halts don't appear to be needed at all, the patch simply
removes them.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/option.c