Skip to content

Commit

Permalink
drivers: tty: serial: uartlite: remove unnecessary braces
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
metux committed Jun 27, 2019
1 parent 6503ac0 commit fc16d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/tty/serial/uartlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit fc16d9a

Please sign in to comment.