提交 5a2ce87b 编写于 作者: H Heiner Kallweit 提交者: Greg Kroah-Hartman

serial: meson: remove dead code in meson_uart_change_speed

val is set in both branches of the if clause, therefore the two
removed lines are dead code.
Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ba50f1df
...@@ -307,8 +307,6 @@ static void meson_uart_change_speed(struct uart_port *port, unsigned long baud) ...@@ -307,8 +307,6 @@ static void meson_uart_change_speed(struct uart_port *port, unsigned long baud)
while (!meson_uart_tx_empty(port)) while (!meson_uart_tx_empty(port))
cpu_relax(); cpu_relax();
val = readl(port->membase + AML_UART_REG5);
val &= ~AML_UART_BAUD_MASK;
if (port->uartclk == 24000000) { if (port->uartclk == 24000000) {
val = ((port->uartclk / 3) / baud) - 1; val = ((port->uartclk / 3) / baud) - 1;
val |= AML_UART_BAUD_XTAL; val |= AML_UART_BAUD_XTAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册