aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/serial/omninet.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c
index 5a76f327ef5..ae8e227f3db 100644
--- a/drivers/usb/serial/omninet.c
+++ b/drivers/usb/serial/omninet.c
@@ -206,8 +206,8 @@ static void omninet_read_bulk_callback(struct urb *urb)
206 unsigned char *data = urb->transfer_buffer; 206 unsigned char *data = urb->transfer_buffer;
207 struct omninet_header *header = (struct omninet_header *) &data[0]; 207 struct omninet_header *header = (struct omninet_header *) &data[0];
208 int status = urb->status; 208 int status = urb->status;
209 int i;
210 int result; 209 int result;
210 int i;
211 211
212 dbg("%s - port %d", __func__, port->number); 212 dbg("%s - port %d", __func__, port->number);
213 213
@@ -229,9 +229,8 @@ static void omninet_read_bulk_callback(struct urb *urb)
229 } 229 }
230 230
231 if (urb->actual_length && header->oh_len) { 231 if (urb->actual_length && header->oh_len) {
232 for (i = 0; i < header->oh_len; i++) 232 tty_insert_flip_string(port->port.tty,
233 tty_insert_flip_char(port->port.tty, 233 data + OMNINET_DATAOFFSET, header->oh_len);
234 data[OMNINET_DATAOFFSET + i], 0);
235 tty_flip_buffer_push(port->port.tty); 234 tty_flip_buffer_push(port->port.tty);
236 } 235 }
237 236