serial: tegra: Remove unused variable
authorThierry Reding <treding@nvidia.com>
Thu, 28 Apr 2016 12:48:05 +0000 (14:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 16:26:55 +0000 (09:26 -0700)
The local mcr variable is never used in the tegra_uart_set_mctrl()
function, so it should be removed.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial-tegra.c

index 1d6fc60ed01332da1dfebfade8065e57565d124a..1dba6719db8ddef3f3b88812d584822577c2cbb4 100644 (file)
@@ -206,10 +206,8 @@ static void set_dtr(struct tegra_uart_port *tup, bool active)
 static void tegra_uart_set_mctrl(struct uart_port *u, unsigned int mctrl)
 {
        struct tegra_uart_port *tup = to_tegra_uport(u);
-       unsigned long mcr;
        int dtr_enable;
 
-       mcr = tup->mcr_shadow;
        tup->rts_active = !!(mctrl & TIOCM_RTS);
        set_rts(tup, tup->rts_active);