diff mbox series

[16/27] tty: mmc: sdio: use u8 for flag

Message ID 20231206073712.17776-17-jirislaby@kernel.org
State New
Headers show
Series tty: type unifications -- the last part | expand

Commit Message

Jiri Slaby Dec. 6, 2023, 7:37 a.m. UTC
Switch character types to u8. To conform to characters in the rest of
the tty layer.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: linux-mmc@vger.kernel.org
---
 drivers/mmc/core/sdio_uart.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/mmc/core/sdio_uart.c b/drivers/mmc/core/sdio_uart.c
index 370fadf1d6d1..575ebbce378e 100644
--- a/drivers/mmc/core/sdio_uart.c
+++ b/drivers/mmc/core/sdio_uart.c
@@ -354,12 +354,11 @@  static void sdio_uart_stop_rx(struct sdio_uart_port *port)
 
 static void sdio_uart_receive_chars(struct sdio_uart_port *port, u8 *status)
 {
-	unsigned int flag;
 	int max_count = 256;
 
 	do {
 		u8 ch = sdio_in(port, UART_RX);
-		flag = TTY_NORMAL;
+		u8 flag = TTY_NORMAL;
 		port->icount.rx++;
 
 		if (unlikely(*status & (UART_LSR_BI | UART_LSR_PE |