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 Feb 7, 2021
1 parent 5d13a09 commit dbbec6c
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 @@ -651,7 +651,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 dbbec6c

Please sign in to comment.