mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0e5a99e0e5
commit
d3210c8e88
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user