Commit
2e124b4a39 (TTY: switch tty_flip_buffer_push) introduced the following
build warning:
drivers/tty/serial/imx.c:519:21: warning: unused variable 'tty' [-Wunused-variable]
Remove the unused 'tty' variable.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
{
struct imx_port *sport = dev_id;
unsigned int rx, flg, ignored = 0;
- struct tty_struct *tty = sport->port.state->port.tty;
struct tty_port *port = &sport->port.state->port;
unsigned long flags, temp;