Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

serial: liteuart: minor style fix in liteuart_init()

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20221123130500.1030189-6-gsomlo@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Gabriel Somlo and committed by
Greg Kroah-Hartman
b9f5a18a 7378beac

+2 -4
+2 -4
drivers/tty/serial/liteuart.c
··· 397 397 return res; 398 398 399 399 res = platform_driver_register(&liteuart_platform_driver); 400 - if (res) { 400 + if (res) 401 401 uart_unregister_driver(&liteuart_driver); 402 - return res; 403 - } 404 402 405 - return 0; 403 + return res; 406 404 } 407 405 408 406 static void __exit liteuart_exit(void)