diff options
author | Alan Cox <alan@redhat.com> | 2008-07-22 06:14:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-22 16:03:26 -0400 |
commit | acc80758abc91e5d91f3f4ceb8dd94da2aa7064d (patch) | |
tree | 98b42107518dc18629c771bf3cac2a277a971370 /drivers/usb/serial/mct_u232.c | |
parent | e19b2560be568301ec4cc486671361ef0471d839 (diff) |
mct_u232: Use flip buffer functions
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/usb/serial/mct_u232.c')
-rw-r--r-- | drivers/usb/serial/mct_u232.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index 7a804d6b3a4c..0ded8bd6ec85 100644 --- a/drivers/usb/serial/mct_u232.c +++ b/drivers/usb/serial/mct_u232.c | |||
@@ -563,11 +563,9 @@ static void mct_u232_read_int_callback(struct urb *urb) | |||
563 | * Work-a-round: handle the 'usual' bulk-in pipe here | 563 | * Work-a-round: handle the 'usual' bulk-in pipe here |
564 | */ | 564 | */ |
565 | if (urb->transfer_buffer_length > 2) { | 565 | if (urb->transfer_buffer_length > 2) { |
566 | int i; | ||
567 | tty = port->port.tty; | 566 | tty = port->port.tty; |
568 | if (urb->actual_length) { | 567 | if (urb->actual_length) { |
569 | for (i = 0; i < urb->actual_length ; ++i) | 568 | tty_insert_flip_string(tty, data, urb->actual_length); |
570 | tty_insert_flip_char(tty, data[i], 0); | ||
571 | tty_flip_buffer_push(tty); | 569 | tty_flip_buffer_push(tty); |
572 | } | 570 | } |
573 | goto exit; | 571 | goto exit; |