Skip to content

Commit

Permalink
usb: fix sillies in the metro USB driver
Browse files Browse the repository at this point in the history
Bits noticed doing the termios conversion

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Jul 12, 2012
1 parent 79d7532 commit 000c74d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/usb/serial/metro-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,20 +130,14 @@ static void metrousb_read_int_callback(struct urb *urb)

/* Set the data read from the usb port into the serial port buffer. */
tty = tty_port_tty_get(&port->port);
if (!tty) {
dev_err(&port->dev, "%s - bad tty pointer - exiting\n",
__func__);
return;
}

if (tty && urb->actual_length) {
/* Loop through the data copying each byte to the tty layer. */
tty_insert_flip_string(tty, data, urb->actual_length);

/* Force the data to the tty layer. */
tty_flip_buffer_push(tty);
tty_kref_put(tty);
}
tty_kref_put(tty);

/* Set any port variables. */
spin_lock_irqsave(&metro_priv->lock, flags);
Expand Down

0 comments on commit 000c74d

Please sign in to comment.