diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2009-07-09 12:58:43 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-12 15:16:40 -0700 |
commit | f092c240494f2d807401d93f95f683909b90af96 (patch) | |
tree | ae123a40cb9957c1ff47f832a500ae4343cf5a6e /drivers/regulator/userspace-consumer.c | |
parent | 4d2fae8b3597bc787f1f1c06637ce5ab8187e5a7 (diff) |
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>
Diffstat (limited to 'drivers/regulator/userspace-consumer.c')
0 files changed, 0 insertions, 0 deletions