diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-05-11 03:30:22 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-31 21:48:16 (GMT) |
commit | ba02406e9bee5726a604a4c8628aac56cb076fef (patch) | |
tree | 300091c38bc5c32aa424eaa34b5dc9455b96ff70 /drivers/tty/serial/8250 | |
parent | 478d1051a0293b8a8857267bb0f768ebcb05cfde (diff) | |
download | linux-ba02406e9bee5726a604a4c8628aac56cb076fef.tar.xz |
serial: 8250: remove return statements from void function
serial8250_set_mctrl() is a void type function. Returning something
does not look nice.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250')
-rw-r--r-- | drivers/tty/serial/8250/8250_core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c index 242e796..37fff12 100644 --- a/drivers/tty/serial/8250/8250_core.c +++ b/drivers/tty/serial/8250/8250_core.c @@ -2006,8 +2006,9 @@ EXPORT_SYMBOL_GPL(serial8250_do_set_mctrl); static void serial8250_set_mctrl(struct uart_port *port, unsigned int mctrl) { if (port->set_mctrl) - return port->set_mctrl(port, mctrl); - return serial8250_do_set_mctrl(port, mctrl); + port->set_mctrl(port, mctrl); + else + serial8250_do_set_mctrl(port, mctrl); } static void serial8250_break_ctl(struct uart_port *port, int break_state) |