Browse Source

serial: tegra: Remove unused variable

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>
Thierry Reding 9 years ago
parent
commit
06c5e362ce
1 changed files with 0 additions and 2 deletions
  1. 0 2
      drivers/tty/serial/serial-tegra.c

+ 0 - 2
drivers/tty/serial/serial-tegra.c

@@ -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)
 static void tegra_uart_set_mctrl(struct uart_port *u, unsigned int mctrl)
 {
 {
 	struct tegra_uart_port *tup = to_tegra_uport(u);
 	struct tegra_uart_port *tup = to_tegra_uport(u);
-	unsigned long mcr;
 	int dtr_enable;
 	int dtr_enable;
 
 
-	mcr = tup->mcr_shadow;
 	tup->rts_active = !!(mctrl & TIOCM_RTS);
 	tup->rts_active = !!(mctrl & TIOCM_RTS);
 	set_rts(tup, tup->rts_active);
 	set_rts(tup, tup->rts_active);