summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/opticon.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2012-11-18 13:23:21 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-21 22:33:54 +0100
commitf38c46021aaa0871a96bd922ccbcc9d61c4ae49e (patch)
tree8defb076bf28fa0d52fc4bb4f1d9eedee12fa930 /drivers/usb/serial/opticon.c
parentUSB: core: Free the allocated memory before exiting on error (diff)
downloadlinux-f38c46021aaa0871a96bd922ccbcc9d61c4ae49e.tar.xz
linux-f38c46021aaa0871a96bd922ccbcc9d61c4ae49e.zip
USB: opticon: remove redundant bulk urb fill
The private bulk in urb is set up at open and does not need to be reinitialised at every resubmit. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/opticon.c')
-rw-r--r--drivers/usb/serial/opticon.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/opticon.c
index 6aba731d4864..cb8674ec5fbb 100644
--- a/drivers/usb/serial/opticon.c
+++ b/drivers/usb/serial/opticon.c
@@ -135,11 +135,6 @@ exit:
/* Continue trying to always read if we should */
if (!priv->throttled) {
- usb_fill_bulk_urb(priv->bulk_read_urb, priv->udev,
- usb_rcvbulkpipe(priv->udev,
- priv->bulk_address),
- priv->bulk_in_buffer, priv->buffer_size,
- opticon_read_bulk_callback, priv);
result = usb_submit_urb(priv->bulk_read_urb, GFP_ATOMIC);
if (result)
dev_err(&port->dev,