serial: linflexuart: Remove redundant uart type assignment
authorLizhe <sensor1010@163.com>
Fri, 12 Jan 2024 13:39:23 +0000 (05:39 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jan 2024 02:40:17 +0000 (18:40 -0800)
In linflex_config_port() the member variable type will be
assigned again. Remove redundant uart type assignment from
linflex_probe().

Signed-off-by: Lizhe <sensor1010@163.com>
Link: https://lore.kernel.org/r/20240112133923.190852-1-sensor1010@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_linflexuart.c

index 52c87876a88de6b7e43969029947744a91f0e3cf..5426322b5f0ca3f8580880bd9bb86131e676b573 100644 (file)
@@ -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;