tty: serial: jsm: fix coding style
authorGimcuan Hui <gimcuan@gmail.com>
Sun, 5 Nov 2017 05:06:21 +0000 (05:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2017 11:58:31 +0000 (12:58 +0100)
This patch fixes the checkpatch.pl complain:

ERROR: else should follow close brace '}'.

Signed-off-by: Gimcuan Hui <gimcuan@gmail.com>
Acked-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/jsm/jsm_tty.c

index 53c3f53..3853bfa 100644 (file)
@@ -478,8 +478,7 @@ int jsm_uart_port_init(struct jsm_board *brd)
                if (rc) {
                        printk(KERN_INFO "jsm: Port %d failed. Aborting...\n", i);
                        return rc;
-               }
-               else
+               } else
                        printk(KERN_INFO "jsm: Port %d added\n", i);
        }