From: Thierry Reding Date: Thu, 28 Apr 2016 12:48:05 +0000 (+0200) Subject: serial: tegra: Remove unused variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=06c5e362ce1fbb29cb9505b4a1191d9489d8bdd2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/serial-tegra.c b/drivers/tty/serial/serial-tegra.c index 1d6fc60ed013..1dba6719db8d 100644 --- a/drivers/tty/serial/serial-tegra.c +++ b/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) { 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);