serial: sc16is7xx: drop redundant conversion to bool

The result of integer comparison already evaluates to bool. No need for
explicit conversion.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Link: https://lore.kernel.org/r/20250827024514.76149-1-zhao.xichao@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
pull/1354/merge
Xichao Zhao 2025-08-27 10:45:14 +08:00 committed by Greg Kroah-Hartman
parent 23743ba647
commit aa1020f5cb
1 changed files with 1 additions and 1 deletions

View File

@ -626,7 +626,7 @@ static void sc16is7xx_handle_rx(struct uart_port *port, unsigned int rxlen,
{ {
struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); struct sc16is7xx_one *one = to_sc16is7xx_one(port, port);
unsigned int lsr = 0, bytes_read, i; unsigned int lsr = 0, bytes_read, i;
bool read_lsr = (iir == SC16IS7XX_IIR_RLSE_SRC) ? true : false; bool read_lsr = (iir == SC16IS7XX_IIR_RLSE_SRC);
u8 ch, flag; u8 ch, flag;
if (unlikely(rxlen >= sizeof(one->buf))) { if (unlikely(rxlen >= sizeof(one->buf))) {