Skip to content

Commit

Permalink
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>
  • Loading branch information
metux committed Apr 30, 2019
1 parent 6492743 commit 7df2a04
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
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7df2a04

Please sign in to comment.