mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-04-29 12:28:27 +02:00
tty: serial: fsl_lpuart: Fix unused variable 'sport' build warning
commit9f8fe348acupstream. Remove the unused variable 'sport' to avoid the kernel build warning. Fixes:3cc16ae096("tty: serial: fsl_lpuart: use port struct directly to simply code") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202503210614.2qGlnbIq-lkp@intel.com/ Signed-off-by: Sherry Sun <sherry.sun@nxp.com> Link: https://lore.kernel.org/r/20250324021051.162676-1-sherry.sun@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ac08fa36d8
commit
b09ff334c1
@@ -638,8 +638,6 @@ static void lpuart32_wait_bit_set(struct uart_port *port, unsigned int offset,
|
||||
|
||||
static int lpuart_poll_init(struct uart_port *port)
|
||||
{
|
||||
struct lpuart_port *sport = container_of(port,
|
||||
struct lpuart_port, port);
|
||||
unsigned long flags;
|
||||
u8 temp;
|
||||
|
||||
@@ -692,7 +690,6 @@ static int lpuart_poll_get_char(struct uart_port *port)
|
||||
static int lpuart32_poll_init(struct uart_port *port)
|
||||
{
|
||||
unsigned long flags;
|
||||
struct lpuart_port *sport = container_of(port, struct lpuart_port, port);
|
||||
u32 temp;
|
||||
|
||||
port->fifosize = 0;
|
||||
|
||||
Reference in New Issue
Block a user