Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Xichao Zhao and committed by
Greg Kroah-Hartman
aa1020f5 23743ba6

+1 -1
+1 -1
drivers/tty/serial/sc16is7xx.c
··· 626 626 { 627 627 struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); 628 628 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); 630 630 u8 ch, flag; 631 631 632 632 if (unlikely(rxlen >= sizeof(one->buf))) {