Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338555
b: refs/heads/master
c: 755b604
h: refs/heads/master
i:
  338553: 5f76bf6
  338551: 364365a
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Oct 30, 2012
1 parent 49040b5 commit 8c68c79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 428d9988557f0f26047af304cf1f3d130b06ed4d
refs/heads/master: 755b6040fa62eab9d9105359cd5884910eef2df4
7 changes: 1 addition & 6 deletions trunk/drivers/usb/serial/ftdi_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2093,16 +2093,11 @@ static int ftdi_chars_in_buffer(struct tty_struct *tty)
{
struct usb_serial_port *port = tty->driver_data;
struct ftdi_private *priv = usb_get_serial_port_data(port);
unsigned long flags;
int chars;
unsigned char *buf;
int ret;

/* Check software buffer (code from
* usb_serial_generic_chars_in_buffer()) */
spin_lock_irqsave(&port->lock, flags);
chars = kfifo_len(&port->write_fifo) + port->tx_bytes;
spin_unlock_irqrestore(&port->lock, flags);
chars = usb_serial_generic_chars_in_buffer(tty);

/* Check hardware buffer */
switch (priv->chip_type) {
Expand Down

0 comments on commit 8c68c79

Please sign in to comment.