提交 ba02406e 编写于 作者: M Masahiro Yamada 提交者: Greg Kroah-Hartman

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: NMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 478d1051
...@@ -2006,8 +2006,9 @@ EXPORT_SYMBOL_GPL(serial8250_do_set_mctrl); ...@@ -2006,8 +2006,9 @@ EXPORT_SYMBOL_GPL(serial8250_do_set_mctrl);
static void serial8250_set_mctrl(struct uart_port *port, unsigned int mctrl) static void serial8250_set_mctrl(struct uart_port *port, unsigned int mctrl)
{ {
if (port->set_mctrl) if (port->set_mctrl)
return port->set_mctrl(port, mctrl); port->set_mctrl(port, mctrl);
return serial8250_do_set_mctrl(port, mctrl); else
serial8250_do_set_mctrl(port, mctrl);
} }
static void serial8250_break_ctl(struct uart_port *port, int break_state) static void serial8250_break_ctl(struct uart_port *port, int break_state)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册