Skip to content

Commit 9f8fe34

Browse files
SherrySun5gregkh
authored andcommitted
tty: serial: fsl_lpuart: Fix unused variable 'sport' build warning
Remove the unused variable 'sport' to avoid the kernel build warning. Fixes: 3cc16ae ("tty: serial: fsl_lpuart: use port struct directly to simply code") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Sherry Sun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2790ce2 commit 9f8fe34

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/tty/serial/fsl_lpuart.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,6 @@ static void lpuart32_wait_bit_set(struct uart_port *port, unsigned int offset,
639639

640640
static int lpuart_poll_init(struct uart_port *port)
641641
{
642-
struct lpuart_port *sport = container_of(port,
643-
struct lpuart_port, port);
644642
unsigned long flags;
645643
u8 fifo;
646644

@@ -693,7 +691,6 @@ static int lpuart_poll_get_char(struct uart_port *port)
693691
static int lpuart32_poll_init(struct uart_port *port)
694692
{
695693
unsigned long flags;
696-
struct lpuart_port *sport = container_of(port, struct lpuart_port, port);
697694
u32 fifo;
698695

699696
port->fifosize = 0;

0 commit comments

Comments
 (0)