From: Lizhe Date: Fri, 12 Jan 2024 13:39:23 +0000 (-0800) Subject: serial: linflexuart: Remove redundant uart type assignment X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e9e873eadced9389b819685a762c9892500f12d0;p=linux.git serial: linflexuart: Remove redundant uart type assignment In linflex_config_port() the member variable type will be assigned again. Remove redundant uart type assignment from linflex_probe(). Signed-off-by: Lizhe Link: https://lore.kernel.org/r/20240112133923.190852-1-sensor1010@163.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/fsl_linflexuart.c b/drivers/tty/serial/fsl_linflexuart.c index 52c87876a88de..5426322b5f0ca 100644 --- a/drivers/tty/serial/fsl_linflexuart.c +++ b/drivers/tty/serial/fsl_linflexuart.c @@ -837,7 +837,6 @@ static int linflex_probe(struct platform_device *pdev) return ret; sport->dev = &pdev->dev; - sport->type = PORT_LINFLEXUART; sport->iotype = UPIO_MEM; sport->irq = ret; sport->ops = &linflex_pops;