mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-24 18:38:38 +00:00
tty: serial: altera_jtaguart: Simplify altera_jtaguart_init()
No need for two separate return statements, consolidate them. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
61bc65599f
commit
b16ea4b04c
@ -493,11 +493,9 @@ static int __init altera_jtaguart_init(void)
|
|||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc;
|
||||||
rc = platform_driver_register(&altera_jtaguart_platform_driver);
|
rc = platform_driver_register(&altera_jtaguart_platform_driver);
|
||||||
if (rc) {
|
if (rc)
|
||||||
uart_unregister_driver(&altera_jtaguart_driver);
|
uart_unregister_driver(&altera_jtaguart_driver);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __exit altera_jtaguart_exit(void)
|
static void __exit altera_jtaguart_exit(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user