diff options
Diffstat (limited to 'drivers/char/mxser.c')
-rw-r--r-- | drivers/char/mxser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/mxser.c b/drivers/char/mxser.c index e218ae29b482..5e28d39b9e81 100644 --- a/drivers/char/mxser.c +++ b/drivers/char/mxser.c | |||
@@ -1806,7 +1806,7 @@ static int mxser_ioctl(struct tty_struct *tty, struct file *file, | |||
1806 | 1806 | ||
1807 | lock_kernel(); | 1807 | lock_kernel(); |
1808 | len = mxser_chars_in_buffer(tty); | 1808 | len = mxser_chars_in_buffer(tty); |
1809 | lsr = inb(info->ioaddr + UART_LSR) & UART_LSR_TEMT; | 1809 | lsr = inb(info->ioaddr + UART_LSR) & UART_LSR_THRE; |
1810 | len += (lsr ? 0 : 1); | 1810 | len += (lsr ? 0 : 1); |
1811 | unlock_kernel(); | 1811 | unlock_kernel(); |
1812 | 1812 | ||