serial: fsl_lpuart: remove build warning
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Oct 2016 06:47:35 +0000 (02:47 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Oct 2016 06:47:35 +0000 (02:47 -0400)
commit 2a41bc2a2b05 ("tty: serial: fsl_lpuart: add polled console
functions") caused a build warning about an unused variable, so fix it.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Nicolae Rosia <nicolae_rosia@mentor.com>
Cc: Stefan Golinschi <stefan.golinschi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c

index 49d7526..23f09f2 100644 (file)
@@ -473,8 +473,6 @@ static int lpuart_poll_init(struct uart_port *port)
 
 static void lpuart_poll_put_char(struct uart_port *port, unsigned char c)
 {
-       unsigned int status;
-
        /* drain */
        while (!(readb(port->membase + UARTSR1) & UARTSR1_TDRE))
                barrier();