From: Jiri Slaby (SUSE) Date: Mon, 17 Mar 2025 07:00:32 +0000 (+0100) Subject: tty: mmc: sdio: use bool for cts and remove parentheses X-Git-Tag: v6.15-rc1~178^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=38e7047a4dac5be9599ac3679e971c73e7b61196;p=thirdparty%2Fkernel%2Flinux.git tty: mmc: sdio: use bool for cts and remove parentheses 'cts' in sdio_uart_check_modem_status() is considered a 'bool', but typed as signed 'int'. Make it 'bool' so it is clear the code does not care about the masked value, but true/false. Signed-off-by: Jiri Slaby (SUSE) Link: https://lore.kernel.org/r/20250317070046.24386-18-jirislaby@kernel.org Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/core/sdio_uart.c b/drivers/mmc/core/sdio_uart.c index 6b7471dba3bf4..7423a601e1e59 100644 --- a/drivers/mmc/core/sdio_uart.c +++ b/drivers/mmc/core/sdio_uart.c @@ -471,7 +471,7 @@ static void sdio_uart_check_modem_status(struct sdio_uart_port *port) port->icount.cts++; tty = tty_port_tty_get(&port->port); if (tty && C_CRTSCTS(tty)) { - int cts = (status & UART_MSR_CTS); + bool cts = status & UART_MSR_CTS; if (tty->hw_stopped) { if (cts) { tty->hw_stopped = false;