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

Configure Feed

Select the types of activity you want to include in your feed.

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
06b449d7f7c3 ("Input: serio - use sizeof(*pointer) instead of sizeof(type)).

Signed-off-by: Wentong Tian <tianwentong2000@gmail.com>
Link: https://patch.msgid.link/20260112162709.89515-1-tianwentong2000@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Wentong Tian and committed by
Dmitry Torokhov
6cebd8e1 3033da61

+3 -4
+1 -1
drivers/input/serio/altera_ps2.c
··· 81 81 struct serio *serio; 82 82 int error, irq; 83 83 84 - ps2if = devm_kzalloc(&pdev->dev, sizeof(struct ps2if), GFP_KERNEL); 84 + ps2if = devm_kzalloc(&pdev->dev, sizeof(*ps2if), GFP_KERNEL); 85 85 if (!ps2if) 86 86 return -ENOMEM; 87 87
+1 -2
drivers/input/serio/arc_ps2.c
··· 189 189 if (irq < 0) 190 190 return -EINVAL; 191 191 192 - arc_ps2 = devm_kzalloc(&pdev->dev, sizeof(struct arc_ps2_data), 193 - GFP_KERNEL); 192 + arc_ps2 = devm_kzalloc(&pdev->dev, sizeof(*arc_ps2), GFP_KERNEL); 194 193 if (!arc_ps2) { 195 194 dev_err(&pdev->dev, "out of memory\n"); 196 195 return -ENOMEM;
+1 -1
drivers/input/serio/olpc_apsp.c
··· 171 171 struct olpc_apsp *priv; 172 172 int error; 173 173 174 - priv = devm_kzalloc(&pdev->dev, sizeof(struct olpc_apsp), GFP_KERNEL); 174 + priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); 175 175 if (!priv) 176 176 return -ENOMEM; 177 177