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 Jul 10, 2019
1 parent 6e5b9c3 commit 07b2b6f
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 07b2b6f

Please sign in to comment.