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 Feb 7, 2021
1 parent bbb2b8e commit f98b5b4
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 f98b5b4

Please sign in to comment.