]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
serial: imx: Remove unused 'tty' variable
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 17 Jan 2013 12:45:13 +0000 (10:45 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 01:31:24 +0000 (17:31 -0800)
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>
drivers/tty/serial/imx.c

index be26345bf6a4e0944b8dbb6212bf33856ed36bb0..a220f77ceab60ba8060a8121f7c510230b580421 100644 (file)
@@ -516,7 +516,6 @@ static irqreturn_t imx_rxint(int irq, void *dev_id)
 {
        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;