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
    [...]

Acked-by: Peter Korsgaard <[email protected]>
Signed-off-by: Enrico Weigelt <[email protected]>
  • Loading branch information
metux committed Apr 30, 2019
1 parent 31ab2e2 commit 4136540
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 4136540

Please sign in to comment.