]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
serial: 8250-of: Fix style issues in 8250_of.c
authorjempty.liang <imntjempty@163.com>
Mon, 17 Nov 2025 03:41:17 +0000 (03:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2025 12:11:48 +0000 (13:11 +0100)
This patch resolves the warning "sizeof *port should be sizeof(*port)"
detected by checkpatch.pl.

Signed-off-by: jempty.liang <imntjempty@163.com>
Link: https://patch.msgid.link/20251117034117.55588-1-imntjempty@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_of.c

index d178b6c54ea18bae57dfd95bc3ce4c56ddd7380e..9799356b65f7f249bbaa031c7794e21e9727a2c8 100644 (file)
@@ -95,7 +95,7 @@ static int of_platform_serial_setup(struct platform_device *ofdev,
        u32 spd;
        int ret;
 
-       memset(port, 0, sizeof *port);
+       memset(port, 0, sizeof(*port));
 
        pm_runtime_enable(&ofdev->dev);
        pm_runtime_get_sync(&ofdev->dev);