Commit 8dd03a5b authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

keyspan_pda: Use string flip 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 9e70f319
...@@ -207,7 +207,6 @@ static void keyspan_pda_rx_interrupt(struct urb *urb) ...@@ -207,7 +207,6 @@ static void keyspan_pda_rx_interrupt(struct urb *urb)
struct usb_serial_port *port = urb->context; struct usb_serial_port *port = urb->context;
struct tty_struct *tty = port->port.tty; struct tty_struct *tty = port->port.tty;
unsigned char *data = urb->transfer_buffer; unsigned char *data = urb->transfer_buffer;
int i;
int retval; int retval;
int status = urb->status; int status = urb->status;
struct keyspan_pda_private *priv; struct keyspan_pda_private *priv;
...@@ -235,8 +234,8 @@ static void keyspan_pda_rx_interrupt(struct urb *urb) ...@@ -235,8 +234,8 @@ static void keyspan_pda_rx_interrupt(struct urb *urb)
case 0: case 0:
/* rest of message is rx data */ /* rest of message is rx data */
if (urb->actual_length) { if (urb->actual_length) {
for (i = 1; i < urb->actual_length ; ++i) tty_insert_flip_string(tty, data + 1,
tty_insert_flip_char(tty, data[i], 0); urb->actual_length - 1);
tty_flip_buffer_push(tty); tty_flip_buffer_push(tty);
} }
break; break;
......
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