Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: core: Fix Coding Style

This patch fixes the following checkpatch error and warning:
1. space required after ','
2. Missing a blank line after declarations

Signed-off-by: Tamseel Shams <m.shams@samsung.com>
Link: https://lore.kernel.org/r/20200716115438.9967-1-m.shams@samsung.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Tamseel Shams and committed by
Greg Kroah-Hartman
4ed71add 82ee0b14

+3 -1
+3 -1
drivers/tty/serial/serial_core.c
··· 1121 1121 return ret; 1122 1122 } 1123 1123 1124 - static int uart_do_autoconfig(struct tty_struct *tty,struct uart_state *state) 1124 + static int uart_do_autoconfig(struct tty_struct *tty, struct uart_state *state) 1125 1125 { 1126 1126 struct tty_port *port = &state->port; 1127 1127 struct uart_port *uport; ··· 1524 1524 /* Handle transition away from B0 status */ 1525 1525 else if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) { 1526 1526 unsigned int mask = TIOCM_DTR; 1527 + 1527 1528 if (!(cflag & CRTSCTS) || !tty_throttled(tty)) 1528 1529 mask |= TIOCM_RTS; 1529 1530 uart_set_mctrl(uport, mask); ··· 2281 2280 if (console_suspend_enabled || !uart_console(uport)) { 2282 2281 /* Protected by port mutex for now */ 2283 2282 struct tty_struct *tty = port->tty; 2283 + 2284 2284 ret = ops->startup(uport); 2285 2285 if (ret == 0) { 2286 2286 if (tty)