Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: cdc-acm: remove redundant usb_mark_last_busy

There's no need to call usb_mark_last_busy after having increased the PM
counter in write(). The device will be marked busy by USB core when the
PM counter is balanced in the completion handler.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Johan Hovold and committed by
Greg Kroah-Hartman
308fee18 4a8ee505

-1
-1
drivers/usb/class/cdc-acm.c
··· 690 690 spin_unlock_irqrestore(&acm->write_lock, flags); 691 691 return count; 692 692 } 693 - usb_mark_last_busy(acm->dev); 694 693 695 694 stat = acm_start_wb(acm, wb); 696 695 spin_unlock_irqrestore(&acm->write_lock, flags);