提交 b16ea4b0 编写于 作者: T Tobias Klauser 提交者: Greg Kroah-Hartman

tty: serial: altera_jtaguart: Simplify altera_jtaguart_init()

No need for two separate return statements, consolidate them.
Signed-off-by: NTobias Klauser <tklauser@distanz.ch>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 61bc6559
......@@ -493,11 +493,9 @@ static int __init altera_jtaguart_init(void)
if (rc)
return rc;
rc = platform_driver_register(&altera_jtaguart_platform_driver);
if (rc) {
if (rc)
uart_unregister_driver(&altera_jtaguart_driver);
return rc;
}
return 0;
return rc;
}
static void __exit altera_jtaguart_exit(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册