Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: 8250-of: Fix style issues in 8250_of.c

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>

authored by

jempty.liang and committed by
Greg Kroah-Hartman
d3210c8e 0e5a99e0

+1 -1
+1 -1
drivers/tty/serial/8250/8250_of.c
··· 95 95 u32 spd; 96 96 int ret; 97 97 98 - memset(port, 0, sizeof *port); 98 + memset(port, 0, sizeof(*port)); 99 99 100 100 pm_runtime_enable(&ofdev->dev); 101 101 pm_runtime_get_sync(&ofdev->dev);