Skip to content

Commit d3210c8

Browse files
jempty.lianggregkh
authored andcommitted
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>
1 parent 0e5a99e commit d3210c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/tty/serial/8250/8250_of.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static int of_platform_serial_setup(struct platform_device *ofdev,
9595
u32 spd;
9696
int ret;
9797

98-
memset(port, 0, sizeof *port);
98+
memset(port, 0, sizeof(*port));
9999

100100
pm_runtime_enable(&ofdev->dev);
101101
pm_runtime_get_sync(&ofdev->dev);

0 commit comments

Comments
 (0)