USB: cdc-acm: clean up throttle handling
authorJohan Hovold <johan@kernel.org>
Thu, 25 Apr 2019 16:05:40 +0000 (18:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Apr 2019 14:14:41 +0000 (16:14 +0200)
commit0f02321e4bd1b17eb957e077e868ef1611f5dbbd
treea4231114463fce1f3822a289fbd339b0520825ce
parent764478f41130f1b8d8057575b89e69980a0f600d
USB: cdc-acm: clean up throttle handling

Clean up the throttle implementation by dropping the redundant
throttle_req flag which was a remnant from back when USB serial had only
a single read URB, something which was later carried over to cdc-acm.

Also convert the throttled flag to an atomic bit flag.

Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c
drivers/usb/class/cdc-acm.h