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 <[email protected]>
  • Loading branch information
metux committed Jan 10, 2020
1 parent eb6134b commit b977932
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 @@ -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 */
Expand Down

0 comments on commit b977932

Please sign in to comment.