diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index ea3b977b530822..b5e5c7461f9bd0 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c @@ -483,9 +483,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 */