serial: meson: remove dead code in meson_uart_change_speed
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 19 Apr 2017 20:17:31 +0000 (22:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 14:34:56 +0000 (16:34 +0200)
val is set in both branches of the if clause, therefore the two
removed lines are dead code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/meson_uart.c

index 97e16db32468842c6778a57ad8046f5e6f8b7c2f..e93a1e47ec6c4a11c67bb77261428fbe36a01859 100644 (file)
@@ -307,8 +307,6 @@ static void meson_uart_change_speed(struct uart_port *port, unsigned long baud)
        while (!meson_uart_tx_empty(port))
                cpu_relax();
 
-       val = readl(port->membase + AML_UART_REG5);
-       val &= ~AML_UART_BAUD_MASK;
        if (port->uartclk == 24000000) {
                val = ((port->uartclk / 3) / baud) - 1;
                val |= AML_UART_BAUD_XTAL;