Commit d3210c8e authored by jempty.liang's avatar jempty.liang Committed by Greg Kroah-Hartman
Browse files

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: default avatarjempty.liang <imntjempty@163.com>
Link: https://patch.msgid.link/20251117034117.55588-1-imntjempty@163.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0e5a99e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);