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>
This commit is contained in:
Gabriel Somlo 2022-11-23 08:04:51 -05:00 committed by Greg Kroah-Hartman
parent 7378beacbb
commit b9f5a18a9d

View File

@ -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)