You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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:
committed by
Greg Kroah-Hartman
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)
|
||||
|
||||
Reference in New Issue
Block a user