aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-02-05 12:07:42 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-05 14:13:50 -0500
commit61bc65599f8118fc53975670f19c37fe2be92a3d (patch)
tree792ad5877f1d7ddff721ead815020e5e4a366129 /drivers/tty/serial
parent1776fd059c40907297d6c26c51876575d63fd9e2 (diff)
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>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/altera_uart.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/tty/serial/altera_uart.c b/drivers/tty/serial/altera_uart.c
index e133c8814bb5..13471dd95793 100644
--- a/drivers/tty/serial/altera_uart.c
+++ b/drivers/tty/serial/altera_uart.c
@@ -637,11 +637,9 @@ static int __init altera_uart_init(void)
637 if (rc) 637 if (rc)
638 return rc; 638 return rc;
639 rc = platform_driver_register(&altera_uart_platform_driver); 639 rc = platform_driver_register(&altera_uart_platform_driver);
640 if (rc) { 640 if (rc)
641 uart_unregister_driver(&altera_uart_driver); 641 uart_unregister_driver(&altera_uart_driver);
642 return rc; 642 return rc;
643 }
644 return 0;
645} 643}
646 644
647static void __exit altera_uart_exit(void) 645static void __exit altera_uart_exit(void)