Skip to content

Commit aa1020f

Browse files
Xichao Zhaogregkh
authored andcommitted
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>
1 parent 23743ba commit aa1020f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/tty/serial/sc16is7xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ static void sc16is7xx_handle_rx(struct uart_port *port, unsigned int rxlen,
626626
{
627627
struct sc16is7xx_one *one = to_sc16is7xx_one(port, port);
628628
unsigned int lsr = 0, bytes_read, i;
629-
bool read_lsr = (iir == SC16IS7XX_IIR_RLSE_SRC) ? true : false;
629+
bool read_lsr = (iir == SC16IS7XX_IIR_RLSE_SRC);
630630
u8 ch, flag;
631631

632632
if (unlikely(rxlen >= sizeof(one->buf))) {

0 commit comments

Comments
 (0)