From: Johan Hovold Date: Sun, 18 Nov 2012 12:23:21 +0000 (+0100) Subject: USB: opticon: remove redundant bulk urb fill X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f38c46021aaa0871a96bd922ccbcc9d61c4ae49e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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,