tty: serial: altera_uart: Simplify altera_uart_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
1776fd059c
commit
61bc65599f
@ -637,11 +637,9 @@ static int __init altera_uart_init(void)
|
||||
if (rc)
|
||||
return rc;
|
||||
rc = platform_driver_register(&altera_uart_platform_driver);
|
||||
if (rc) {
|
||||
if (rc)
|
||||
uart_unregister_driver(&altera_uart_driver);
|
||||
return rc;
|
||||
}
|
||||
return 0;
|
||||
return rc;
|
||||
}
|
||||
|
||||
static void __exit altera_uart_exit(void)
|
||||
|
Loading…
Reference in New Issue
Block a user