From: Tobias Klauser Date: Tue, 5 Feb 2013 17:07:22 +0000 (+0100) Subject: tty: serial: altera_jtaguart: Simplify altera_jtaguart_init() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b16ea4b04c3b74524805a409ee2747b751b7a138;p=openwrt%2Fstaging%2Fblogic.git tty: serial: altera_jtaguart: Simplify altera_jtaguart_init() No need for two separate return statements, consolidate them. Signed-off-by: Tobias Klauser Signed-off-by: Greg Kroah-Hartman --- 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) 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)