diff options
author | Tudor Ambarus <tudor.ambarus@linaro.org> | 2024-01-19 10:45:16 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-01-27 19:05:19 -0800 |
commit | b1617c7888476e69e5b03b89eedef2bd2c60901e (patch) | |
tree | eaa2a57a2d5badd855d1bd65d1beb23b6f8f5591 /drivers/tty/serial/samsung_tty.c | |
parent | 032a725c16add79332d774348d7ad7d0d4b86479 (diff) | |
download | linux-stable-b1617c7888476e69e5b03b89eedef2bd2c60901e.tar.gz linux-stable-b1617c7888476e69e5b03b89eedef2bd2c60901e.tar.bz2 linux-stable-b1617c7888476e69e5b03b89eedef2bd2c60901e.zip |
tty: serial: samsung: remove braces on single statement block
Braces {} are not necessary for single statement blocks.
Remove braces on single statement block.
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Link: https://lore.kernel.org/r/20240119104526.1221243-10-tudor.ambarus@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/samsung_tty.c')
-rw-r--r-- | drivers/tty/serial/samsung_tty.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index 8b396c950933..303b67498c65 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -2061,9 +2061,8 @@ static void s3c24xx_serial_remove(struct platform_device *dev) { struct uart_port *port = s3c24xx_dev_to_port(&dev->dev); - if (port) { + if (port) uart_remove_one_port(&s3c24xx_uart_drv, port); - } uart_unregister_driver(&s3c24xx_uart_drv); } |