projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e19b256
)
mct_u232: Use flip buffer functions
author
Alan Cox
<alan@redhat.com>
Tue, 22 Jul 2008 10:14:40 +0000
(11:14 +0100)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 22 Jul 2008 20:03:26 +0000
(13:03 -0700)
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>
drivers/usb/serial/mct_u232.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/serial/mct_u232.c
b/drivers/usb/serial/mct_u232.c
index 7a804d6b3a4caa2d916868e7a80332a5e4279013..0ded8bd6ec8546a9ff694b2e002ab4b2b6f3758e 100644
(file)
--- 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)
* 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;