tty: serial: altera_jtaguart: Simplify altera_jtaguart_init()
authorTobias Klauser <tklauser@distanz.ch>
Tue, 5 Feb 2013 17:07:22 +0000 (18:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Feb 2013 19:13:51 +0000 (11:13 -0800)
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>
drivers/tty/serial/altera_jtaguart.c

index 84b90fd48063fd9440f4dc63725e584b8e1d5460..c6bdb943726b0494a9deab39a5be591edb76cf9a 100644 (file)
@@ -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)