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
parent
23743ba647
commit
aa1020f5cb
|
|
@ -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))) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue