Skip to content

Commit 4ed71ad

Browse files
Tamseel Shamsgregkh
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 82ee0b1 commit 4ed71ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/tty/serial/serial_core.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ static int uart_break_ctl(struct tty_struct *tty, int break_state)
11211121
return ret;
11221122
}
11231123

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)
11251125
{
11261126
struct tty_port *port = &state->port;
11271127
struct uart_port *uport;
@@ -1524,6 +1524,7 @@ static void uart_set_termios(struct tty_struct *tty,
15241524
/* Handle transition away from B0 status */
15251525
else if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) {
15261526
unsigned int mask = TIOCM_DTR;
1527+
15271528
if (!(cflag & CRTSCTS) || !tty_throttled(tty))
15281529
mask |= TIOCM_RTS;
15291530
uart_set_mctrl(uport, mask);
@@ -2280,6 +2281,7 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport)
22802281
if (console_suspend_enabled || !uart_console(uport)) {
22812282
/* Protected by port mutex for now */
22822283
struct tty_struct *tty = port->tty;
2284+
22832285
ret = ops->startup(uport);
22842286
if (ret == 0) {
22852287
if (tty)

0 commit comments

Comments
 (0)