diff options
| -rw-r--r-- | drivers/char/nozomi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/nozomi.c b/drivers/char/nozomi.c index 18af923093c3..817169cbb245 100644 --- a/drivers/char/nozomi.c +++ b/drivers/char/nozomi.c | |||
| @@ -1743,8 +1743,7 @@ static int ntty_write_room(struct tty_struct *tty) | |||
| 1743 | if (dc) { | 1743 | if (dc) { |
| 1744 | mutex_lock(&port->tty_sem); | 1744 | mutex_lock(&port->tty_sem); |
| 1745 | if (port->port.count) | 1745 | if (port->port.count) |
| 1746 | room = port->fifo_ul.size - | 1746 | room = kfifo_avail(&port->fifo_ul); |
| 1747 | kfifo_len(&port->fifo_ul); | ||
| 1748 | mutex_unlock(&port->tty_sem); | 1747 | mutex_unlock(&port->tty_sem); |
| 1749 | } | 1748 | } |
| 1750 | return room; | 1749 | return room; |
