]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
serial: 8250_ni: Reorder local variables
authorChaitanya Vadrevu <chaitanya.vadrevu@emerson.com>
Fri, 11 Jul 2025 20:04:18 +0000 (15:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2025 09:05:33 +0000 (11:05 +0200)
Reorder local variables in ni16550_probe to follow reverse Christmas
tree style.

Cc: Jason Smith <jason.smith@emerson.com>
Cc: Gratian Crisan <gratian.crisan@emerson.com>
Signed-off-by: Chaitanya Vadrevu <chaitanya.vadrevu@emerson.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250711200418.1858682-3-chaitanya.vadrevu@emerson.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_ni.c

index 81f2255012153836db50cb9ebac00e01d743d6a5..cb5b42b3609c96963e13b8958cfbc226ae62df9b 100644 (file)
@@ -275,12 +275,12 @@ static void ni16550_set_mctrl(struct uart_port *port, unsigned int mctrl)
 
 static int ni16550_probe(struct platform_device *pdev)
 {
+       struct uart_8250_port *uart __free(kfree) = NULL;
        const struct ni16550_device_info *info;
        struct device *dev = &pdev->dev;
-       struct uart_8250_port *uart __free(kfree) = NULL;
        unsigned int txfifosz, rxfifosz;
-       unsigned int prescaler;
        struct ni16550_data *data;
+       unsigned int prescaler;
        const char *portmode;
        bool rs232_property;
        int ret;