aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/keyspan_pda.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c
index b60012ce4c91..040040a267d9 100644
--- a/drivers/usb/serial/keyspan_pda.c
+++ b/drivers/usb/serial/keyspan_pda.c
@@ -207,7 +207,6 @@ static void keyspan_pda_rx_interrupt(struct urb *urb)
207 struct usb_serial_port *port = urb->context; 207 struct usb_serial_port *port = urb->context;
208 struct tty_struct *tty = port->port.tty; 208 struct tty_struct *tty = port->port.tty;
209 unsigned char *data = urb->transfer_buffer; 209 unsigned char *data = urb->transfer_buffer;
210 int i;
211 int retval; 210 int retval;
212 int status = urb->status; 211 int status = urb->status;
213 struct keyspan_pda_private *priv; 212 struct keyspan_pda_private *priv;
@@ -235,8 +234,8 @@ static void keyspan_pda_rx_interrupt(struct urb *urb)
235 case 0: 234 case 0:
236 /* rest of message is rx data */ 235 /* rest of message is rx data */
237 if (urb->actual_length) { 236 if (urb->actual_length) {
238 for (i = 1; i < urb->actual_length ; ++i) 237 tty_insert_flip_string(tty, data + 1,
239 tty_insert_flip_char(tty, data[i], 0); 238 urb->actual_length - 1);
240 tty_flip_buffer_push(tty); 239 tty_flip_buffer_push(tty);
241 } 240 }
242 break; 241 break;