From 7f5e2f053d5c74f79d8846f1ab92446e3ebf646e Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 18 Apr 2019 18:22:01 +0200 Subject: [PATCH] drivers: tty: serial: uartlite: remove unnecessary braces checkpatch complains: WARNING: braces {} are not necessary for any arm of this statement #489: FILE: drivers/tty/serial/uartlite.c:489: + if (oops_in_progress) { [...] + } else [...] Signed-off-by: Enrico Weigelt --- drivers/tty/serial/uartlite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index 67d66353e75d36..27f33feb6ad156 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c @@ -486,9 +486,9 @@ static void ulite_console_write(struct console *co, const char *s, unsigned int ier; int locked = 1; - if (oops_in_progress) { + if (oops_in_progress) locked = spin_trylock_irqsave(&port->lock, flags); - } else + else spin_lock_irqsave(&port->lock, flags); /* save and disable interrupt */