Commit 6cebd8e1 authored by Wentong Tian's avatar Wentong Tian Committed by Dmitry Torokhov
Browse files

Input: serio - complete sizeof(*pointer) conversions



Complete the sizeof(*pointer) conversion for arc_ps2, altera_ps2, and
olpc_apsp drivers. This follows the cleanup initiated in commit
06b449d7 ("Input: serio - use sizeof(*pointer) instead of sizeof(type)).

Signed-off-by: default avatarWentong Tian <tianwentong2000@gmail.com>
Link: https://patch.msgid.link/20260112162709.89515-1-tianwentong2000@gmail.com


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 3033da61
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ static int altera_ps2_probe(struct platform_device *pdev)
	struct serio *serio;
	int error, irq;

	ps2if = devm_kzalloc(&pdev->dev, sizeof(struct ps2if), GFP_KERNEL);
	ps2if = devm_kzalloc(&pdev->dev, sizeof(*ps2if), GFP_KERNEL);
	if (!ps2if)
		return -ENOMEM;

+1 −2
Original line number Diff line number Diff line
@@ -189,8 +189,7 @@ static int arc_ps2_probe(struct platform_device *pdev)
	if (irq < 0)
		return -EINVAL;

	arc_ps2 = devm_kzalloc(&pdev->dev, sizeof(struct arc_ps2_data),
				GFP_KERNEL);
	arc_ps2 = devm_kzalloc(&pdev->dev, sizeof(*arc_ps2), GFP_KERNEL);
	if (!arc_ps2) {
		dev_err(&pdev->dev, "out of memory\n");
		return -ENOMEM;
+1 −1
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ static int olpc_apsp_probe(struct platform_device *pdev)
	struct olpc_apsp *priv;
	int error;

	priv = devm_kzalloc(&pdev->dev, sizeof(struct olpc_apsp), GFP_KERNEL);
	priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
	if (!priv)
		return -ENOMEM;