Linux Kernels

serial: fsl_lpuart: remove build warning

This change “serial: fsl_lpuart: remove build warning” (commit 463e2a2) in Linux kernel is authored by Greg Kroah-Hartman <gregkh [at] linuxfoundation.org> on Fri Oct 28 02:47:35 2016 -0400.

Description of "serial: fsl_lpuart: remove build warning"

The change “serial: fsl_lpuart: remove build warning” introduces changes as follows.

serial: fsl_lpuart: remove build warning

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>

Linux kernel releases containing commit 463e2a2

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "serial: fsl_lpuart: remove build warning"

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/tty/serial/fsl_lpuart.c | 2 --
 1 file changed, 2 deletions(-)
 
diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c
index 49d7526e2587..23f09f2a14f7 100644
--- a/drivers/tty/serial/fsl_lpuart.c
+++ b/drivers/tty/serial/fsl_lpuart.c
@@ -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();

The commit for this change in Linux stable tree is 463e2a2 (patch).

Last modified: 2020/01/11 09:41