cdc-acm: refactor killing urbs
authorLadislav Michl <ladis@linux-mips.org>
Fri, 18 Nov 2016 18:07:08 +0000 (19:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Nov 2016 10:36:15 +0000 (11:36 +0100)
commitba8c931ded8d96c8923662099416bc2096644eab
treea453e8192002b81e15f2e99456adea8571fe3753
parente46146069bf60bb2b5c135bb132a1c0d1f905f4a
cdc-acm: refactor killing urbs

Move urb killing code into separate function and use it
instead of copying that code pattern over.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c