Skip to contentSkip to conversation

serial: tegra: Remove unused variable

PATCH New Thierry Reding 1 participant 1 message Apr 28, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial: tegra: Remove unused variable

From: Thierry Reding <[email protected]>

The local mcr variable is never used in the tegra_uart_set_mctrl() function, so it should be removed.

---
 drivers/tty/serial/serial-tegra.c | 2 --
 1 file changed, 2 deletions(-)
drivers/tty/serial/serial-tegra.c +0 -2
index 1d6fc60ed013..1dba6719db8d 100644
@@ -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);
 
Signature · 1 line
2.8.0