Skip to content

Commit e10865a

Browse files
Jiri Slaby (SUSE)gregkh
authored andcommitted
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) <[email protected]> Cc: Ulf Hansson <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5af8903 commit e10865a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/core/sdio_uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ static void sdio_uart_check_modem_status(struct sdio_uart_port *port)
471471
port->icount.cts++;
472472
tty = tty_port_tty_get(&port->port);
473473
if (tty && C_CRTSCTS(tty)) {
474-
int cts = (status & UART_MSR_CTS);
474+
bool cts = status & UART_MSR_CTS;
475475
if (tty->hw_stopped) {
476476
if (cts) {
477477
tty->hw_stopped = false;

0 commit comments

Comments
 (0)