[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221123130500.1030189-6-gsomlo@gmail.com>
Date: Wed, 23 Nov 2022 08:04:51 -0500
From: Gabriel Somlo <gsomlo@...il.com>
To: linux-kernel@...r.kernel.org
Cc: linux-serial@...r.kernel.org, gregkh@...uxfoundation.org,
jirislaby@...nel.org, kgugala@...micro.com, mholenko@...micro.com,
joel@....id.au, david.abdurachmanov@...il.com,
florent@...oy-digital.fr, geert@...ux-m68k.org,
ilpo.jarvinen@...ux.intel.com
Subject: [PATCH v6 05/14] serial: liteuart: minor style fix in liteuart_init()
Signed-off-by: Gabriel Somlo <gsomlo@...il.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
Reviewed-by: Geert Uytterhoeven <geert@...ux-m68k.org>
---
drivers/tty/serial/liteuart.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/tty/serial/liteuart.c b/drivers/tty/serial/liteuart.c
index c6eb7eba5af8..1e3429bcc2ad 100644
--- a/drivers/tty/serial/liteuart.c
+++ b/drivers/tty/serial/liteuart.c
@@ -397,12 +397,10 @@ static int __init liteuart_init(void)
return res;
res = platform_driver_register(&liteuart_platform_driver);
- if (res) {
+ if (res)
uart_unregister_driver(&liteuart_driver);
- return res;
- }
- return 0;
+ return res;
}
static void __exit liteuart_exit(void)
--
2.38.1
Powered by blists - more mailing lists