From 2f7022e1c7b2d7ad58d415f25d2a08638ec44ba3 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 22 Jul 2008 11:14:40 +0100 Subject: [PATCH] --- yaml --- r: 104674 b: refs/heads/master c: acc80758abc91e5d91f3f4ceb8dd94da2aa7064d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/usb/serial/mct_u232.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 92b679b64dc2..b1ab230731a5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e19b2560be568301ec4cc486671361ef0471d839 +refs/heads/master: acc80758abc91e5d91f3f4ceb8dd94da2aa7064d diff --git a/trunk/drivers/usb/serial/mct_u232.c b/trunk/drivers/usb/serial/mct_u232.c index 7a804d6b3a4c..0ded8bd6ec85 100644 --- a/trunk/drivers/usb/serial/mct_u232.c +++ b/trunk/drivers/usb/serial/mct_u232.c @@ -563,11 +563,9 @@ static void mct_u232_read_int_callback(struct urb *urb) * Work-a-round: handle the 'usual' bulk-in pipe here */ if (urb->transfer_buffer_length > 2) { - int i; tty = port->port.tty; if (urb->actual_length) { - for (i = 0; i < urb->actual_length ; ++i) - tty_insert_flip_char(tty, data[i], 0); + tty_insert_flip_string(tty, data, urb->actual_length); tty_flip_buffer_push(tty); } goto exit;