diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-11-18 07:23:21 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-21 16:33:54 -0500 |
commit | f38c46021aaa0871a96bd922ccbcc9d61c4ae49e (patch) | |
tree | 8defb076bf28fa0d52fc4bb4f1d9eedee12fa930 /drivers/usb/serial | |
parent | c058f7ab94143dfa2286e496019b7ad0b95502ac (diff) |
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')
-rw-r--r-- | drivers/usb/serial/opticon.c | 5 |
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: | |||
135 | 135 | ||
136 | /* Continue trying to always read if we should */ | 136 | /* Continue trying to always read if we should */ |
137 | if (!priv->throttled) { | 137 | if (!priv->throttled) { |
138 | usb_fill_bulk_urb(priv->bulk_read_urb, priv->udev, | ||
139 | usb_rcvbulkpipe(priv->udev, | ||
140 | priv->bulk_address), | ||
141 | priv->bulk_in_buffer, priv->buffer_size, | ||
142 | opticon_read_bulk_callback, priv); | ||
143 | result = usb_submit_urb(priv->bulk_read_urb, GFP_ATOMIC); | 138 | result = usb_submit_urb(priv->bulk_read_urb, GFP_ATOMIC); |
144 | if (result) | 139 | if (result) |
145 | dev_err(&port->dev, | 140 | dev_err(&port->dev, |