Commit acc80758 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

mct_u232: Use flip buffer functions

Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e19b2560
...@@ -563,11 +563,9 @@ static void mct_u232_read_int_callback(struct urb *urb) ...@@ -563,11 +563,9 @@ static void mct_u232_read_int_callback(struct urb *urb)
* Work-a-round: handle the 'usual' bulk-in pipe here * Work-a-round: handle the 'usual' bulk-in pipe here
*/ */
if (urb->transfer_buffer_length > 2) { if (urb->transfer_buffer_length > 2) {
int i;
tty = port->port.tty; tty = port->port.tty;
if (urb->actual_length) { if (urb->actual_length) {
for (i = 0; i < urb->actual_length ; ++i) tty_insert_flip_string(tty, data, urb->actual_length);
tty_insert_flip_char(tty, data[i], 0);
tty_flip_buffer_push(tty); tty_flip_buffer_push(tty);
} }
goto exit; goto exit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment