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.

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) <jirislaby@kernel.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: linux-mmc@vger.kernel.org
Link: https://lore.kernel.org/r/20250317070046.24386-18-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
e10865aa 5af89030

+1 -1
+1 -1
drivers/mmc/core/sdio_uart.c
··· 471 471 port->icount.cts++; 472 472 tty = tty_port_tty_get(&port->port); 473 473 if (tty && C_CRTSCTS(tty)) { 474 - int cts = (status & UART_MSR_CTS); 474 + bool cts = status & UART_MSR_CTS; 475 475 if (tty->hw_stopped) { 476 476 if (cts) { 477 477 tty->hw_stopped = false;