Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: serial: lpc32xx_hs: Remove unused variable 'tmp'

Fixes the following W=1 kernel build warning(s):

drivers/tty/serial/lpc32xx_hs.c: In function ‘__serial_uart_flush’:
drivers/tty/serial/lpc32xx_hs.c:244:6: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable]

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jirislaby@kernel.org>
Cc: Vladimir Zapolskiy <vz@mleia.com>
Cc: Sylvain Lemieux <slemieux.tyco@gmail.com>
Cc: Kevin Wells <kevin.wells@nxp.com>
Cc: Roland Stigge <stigge@antcom.de>
Cc: linux-serial@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Link: https://lore.kernel.org/r/20201104193549.4026187-20-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Lee Jones and committed by
Greg Kroah-Hartman
c4e3f0c0 b410e35d

+1 -2
+1 -2
drivers/tty/serial/lpc32xx_hs.c
··· 241 241 242 242 static void __serial_uart_flush(struct uart_port *port) 243 243 { 244 - u32 tmp; 245 244 int cnt = 0; 246 245 247 246 while ((readl(LPC32XX_HSUART_LEVEL(port->membase)) > 0) && 248 247 (cnt++ < FIFO_READ_LIMIT)) 249 - tmp = readl(LPC32XX_HSUART_FIFO(port->membase)); 248 + readl(LPC32XX_HSUART_FIFO(port->membase)); 250 249 } 251 250 252 251 static void __serial_lpc32xx_rx(struct uart_port *port)