Skip to content

Commit fe16da4

Browse files
committed
drivers: tty: serial: uartlite: remove unnecessary braces
checkpatch complains: WARNING: braces {} are not necessary for any arm of this statement torvalds#489: FILE: drivers/tty/serial/uartlite.c:489: + if (oops_in_progress) { [...] + } else [...] Signed-off-by: Enrico Weigelt <[email protected]>
1 parent 3fe4591 commit fe16da4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/tty/serial/uartlite.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,9 @@ static void ulite_console_write(struct console *co, const char *s,
486486
unsigned int ier;
487487
int locked = 1;
488488

489-
if (oops_in_progress) {
489+
if (oops_in_progress)
490490
locked = spin_trylock_irqsave(&port->lock, flags);
491-
} else
491+
else
492492
spin_lock_irqsave(&port->lock, flags);
493493

494494
/* save and disable interrupt */

0 commit comments

Comments
 (0)