Skip to content

Commit 5e32865

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 <info@metux.net>
1 parent 8fd9d96 commit 5e32865

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
@@ -483,9 +483,9 @@ static void ulite_console_write(struct console *co, const char *s,
483483
unsigned int ier;
484484
int locked = 1;
485485

486-
if (oops_in_progress) {
486+
if (oops_in_progress)
487487
locked = spin_trylock_irqsave(&port->lock, flags);
488-
} else
488+
else
489489
spin_lock_irqsave(&port->lock, flags);
490490

491491
/* save and disable interrupt */

0 commit comments

Comments
 (0)