USB: cdc-acm: remove redundant usb_mark_last_busy
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:23:50 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:10 +0000 (15:04 -0700)
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>
drivers/usb/class/cdc-acm.c

index 3c7cfac48e3020732d2d02a2516393f1e654857c..8f654ce52570677732364164f17dc5c65ea04e3f 100644 (file)
@@ -690,7 +690,6 @@ static int acm_tty_write(struct tty_struct *tty,
                spin_unlock_irqrestore(&acm->write_lock, flags);
                return count;
        }
-       usb_mark_last_busy(acm->dev);
 
        stat = acm_start_wb(acm, wb);
        spin_unlock_irqrestore(&acm->write_lock, flags);