mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
mxser: remove else from LSR bits checks
UART_LSR_SPECIAL is composed of UART_LSR_BI, UART_LSR_PE, UART_LSR_FE, UART_LSR_OE. So status cannot be anything else. Remove the unused else branch. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20210618061516.662-18-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0c4194218c
commit
6de6e5c4be
@ -2124,8 +2124,7 @@ static u8 mxser_receive_chars_old(struct tty_struct *tty,
|
|||||||
} else if (status & UART_LSR_OE) {
|
} else if (status & UART_LSR_OE) {
|
||||||
flag = TTY_OVERRUN;
|
flag = TTY_OVERRUN;
|
||||||
port->icount.overrun++;
|
port->icount.overrun++;
|
||||||
} else
|
}
|
||||||
flag = TTY_BREAK;
|
|
||||||
}
|
}
|
||||||
tty_insert_flip_char(&port->port, ch, flag);
|
tty_insert_flip_char(&port->port, ch, flag);
|
||||||
(*cnt)++;
|
(*cnt)++;
|
||||||
|
Loading…
Reference in New Issue
Block a user