OSDN Git Service

USB: serial: ti_usb_3410_5052: clean up termios CSIZE handling
authorJohan Hovold <johan@kernel.org>
Mon, 12 Apr 2021 09:47:38 +0000 (11:47 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 13 Apr 2021 16:24:51 +0000 (18:24 +0200)
Remove the random white space from the CSIZE switch.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ti_usb_3410_5052.c

index 7e33516..caa46ac 100644 (file)
@@ -910,18 +910,18 @@ static void ti_set_termios(struct tty_struct *tty,
 
        switch (C_CSIZE(tty)) {
        case CS5:
-                   config->bDataBits = TI_UART_5_DATA_BITS;
-                   break;
+               config->bDataBits = TI_UART_5_DATA_BITS;
+               break;
        case CS6:
-                   config->bDataBits = TI_UART_6_DATA_BITS;
-                   break;
+               config->bDataBits = TI_UART_6_DATA_BITS;
+               break;
        case CS7:
-                   config->bDataBits = TI_UART_7_DATA_BITS;
-                   break;
+               config->bDataBits = TI_UART_7_DATA_BITS;
+               break;
        default:
        case CS8:
-                   config->bDataBits = TI_UART_8_DATA_BITS;
-                   break;
+               config->bDataBits = TI_UART_8_DATA_BITS;
+               break;
        }
 
        /* CMSPAR isn't supported by this driver */