mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
USB: serial: refactor read urb submission in generic driver
Use the already exported function for submitting the read urb associated with a usb_serial_port. Make sure it returns the result of usb_submit_urb and rename to the more descriptive usb_serial_generic_submit_read_urb. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f26788da3b
commit
41bd72f904
@@ -69,7 +69,7 @@ static void usb_debug_read_bulk_callback(struct urb *urb)
|
||||
memcmp(urb->transfer_buffer, USB_DEBUG_BRK,
|
||||
USB_DEBUG_BRK_SIZE) == 0) {
|
||||
usb_serial_handle_break(port);
|
||||
usb_serial_generic_resubmit_read_urb(port, GFP_ATOMIC);
|
||||
usb_serial_generic_submit_read_urb(port, GFP_ATOMIC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user