USB: serial: remove unnecessary reinitialisations of urb->dev
Remove unnecessary reinitialisations of urb->dev before each submission, which were based on the (no longer valid) assumption that serial->dev will be set to NULL on close. Compile-only tested. Cc: Matthias Bruestle and Harald Welte <support@reiner-sct.com> Cc: Lonnie Mendez <dignome@gmail.com> Cc: Peter Berger <pberger@brimson.com> Cc: Al Borchers <alborchers@steinerpoint.com> Cc: Support Department <support@connecttech.com> Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
016af7ec49
commit
5833041f1b
@@ -182,7 +182,6 @@ static void symbol_unthrottle(struct tty_struct *tty)
|
||||
priv->actually_throttled = false;
|
||||
spin_unlock_irq(&priv->lock);
|
||||
|
||||
priv->int_urb->dev = port->serial->dev;
|
||||
if (was_throttled) {
|
||||
result = usb_submit_urb(priv->int_urb, GFP_KERNEL);
|
||||
if (result)
|
||||
|
Reference in New Issue
Block a user