diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-02-05 12:07:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-02-05 14:13:51 -0500 |
commit | b16ea4b04c3b74524805a409ee2747b751b7a138 (patch) | |
tree | 9700ec2f12f42047f1a231cc5c4fe11c9b78ad91 /drivers/tty | |
parent | 61bc65599f8118fc53975670f19c37fe2be92a3d (diff) |
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/altera_jtaguart.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/tty/serial/altera_jtaguart.c b/drivers/tty/serial/altera_jtaguart.c index 84b90fd48063..c6bdb943726b 100644 --- a/drivers/tty/serial/altera_jtaguart.c +++ b/drivers/tty/serial/altera_jtaguart.c | |||
@@ -493,11 +493,9 @@ static int __init altera_jtaguart_init(void) | |||
493 | if (rc) | 493 | if (rc) |
494 | return rc; | 494 | return rc; |
495 | rc = platform_driver_register(&altera_jtaguart_platform_driver); | 495 | rc = platform_driver_register(&altera_jtaguart_platform_driver); |
496 | if (rc) { | 496 | if (rc) |
497 | uart_unregister_driver(&altera_jtaguart_driver); | 497 | uart_unregister_driver(&altera_jtaguart_driver); |
498 | return rc; | 498 | return rc; |
499 | } | ||
500 | return 0; | ||
501 | } | 499 | } |
502 | 500 | ||
503 | static void __exit altera_jtaguart_exit(void) | 501 | static void __exit altera_jtaguart_exit(void) |