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 <[email protected]>
---
 drivers/usb/serial/opticon.c | 5 -----
 1 file changed, 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,
-- 
1.7.12.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to