summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/opticon.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2012-11-18 12:23:21 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-21 21:33:54 (GMT)
commitf38c46021aaa0871a96bd922ccbcc9d61c4ae49e (patch)
tree8defb076bf28fa0d52fc4bb4f1d9eedee12fa930 /drivers/usb/serial/opticon.c
parentc058f7ab94143dfa2286e496019b7ad0b95502ac (diff)
downloadlinux-fsl-qoriq-f38c46021aaa0871a96bd922ccbcc9d61c4ae49e.tar.xz
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 6aba731..cb8674e 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,