From: Gabriel Somlo Date: Wed, 23 Nov 2022 13:04:51 +0000 (-0500) Subject: serial: liteuart: minor style fix in liteuart_init() X-Git-Tag: v6.3-rc1~109^2~135 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b9f5a18a9d7c4c41325c72971abec19278c7c6e6;p=linux-block.git serial: liteuart: minor style fix in liteuart_init() Signed-off-by: Gabriel Somlo Reviewed-by: Ilpo Järvinen Reviewed-by: Geert Uytterhoeven Reviewed-by: Jiri Slaby Link: https://lore.kernel.org/r/20221123130500.1030189-6-gsomlo@gmail.com Signed-off-by: Greg Kroah-Hartman --- 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)