Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f38c4602 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

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: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c058f7ab
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -135,11 +135,6 @@ static void opticon_read_bulk_callback(struct urb *urb)

	/* 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,