Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: tty: serial: sb1250-duart: fix formatting error
Browse files Browse the repository at this point in the history
checkpatch complains:

    ERROR: space required before the open parenthesis '('
    torvalds#659: FILE: drivers/tty/serial/sb1250-duart.c:659:
    +	if(refcount_dec_and_test(&duart->map_guard))

Just add this missing space to make checkpatch happy.

Signed-off-by: Enrico Weigelt <info@metux.net>
metux committed Apr 27, 2019
1 parent 8f41a47 commit 7f46fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/sb1250-duart.c
Original file line number Diff line number Diff line change
@@ -656,7 +656,7 @@ static void sbd_release_port(struct uart_port *uport)
iounmap(uport->membase);
uport->membase = NULL;

if(refcount_dec_and_test(&duart->map_guard))
if (refcount_dec_and_test(&duart->map_guard))
release_mem_region(duart->mapctrl, DUART_CHANREG_SPACING);
release_mem_region(uport->mapbase, uport->mapsize);
}

0 comments on commit 7f46fc5

Please sign in to comment.