Skip to content

Commit

Permalink
USB: cdc-acm: remove redundant usb_mark_last_busy
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
jhovold authored and gregkh committed May 27, 2014
1 parent 4a8ee50 commit 308fee1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/usb/class/cdc-acm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 308fee1

Please sign in to comment.