]> www.infradead.org Git - linux.git/commit
Input: serio - use sizeof(*pointer) instead of sizeof(type)
authorErick Archer <erick.archer@outlook.com>
Fri, 7 Jun 2024 17:04:23 +0000 (19:04 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 7 Jun 2024 18:59:21 +0000 (11:59 -0700)
commit06b449d7f7c361dc15ea040966a46ed2c6508f3b
tree88e4fc47d08d4495f0abbac67af7559518007195
parent18547925519acaa57c1877871c144e2646249d59
Input: serio - use sizeof(*pointer) instead of sizeof(type)

It is preferred to use sizeof(*pointer) instead of sizeof(type)
due to the type of the variable can change and one needs not
change the former (unlike the latter). This patch has no effect
on runtime behavior.

Signed-off-by: Erick Archer <erick.archer@outlook.com>
Link: https://lore.kernel.org/r/AS8PR02MB7237D3D898CCC9C50C18DE078BFB2@AS8PR02MB7237.eurprd02.prod.outlook.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
23 files changed:
drivers/input/serio/altera_ps2.c
drivers/input/serio/ambakmi.c
drivers/input/serio/apbps2.c
drivers/input/serio/arc_ps2.c
drivers/input/serio/ct82c710.c
drivers/input/serio/gscps2.c
drivers/input/serio/hyperv-keyboard.c
drivers/input/serio/i8042.c
drivers/input/serio/maceps2.c
drivers/input/serio/olpc_apsp.c
drivers/input/serio/parkbd.c
drivers/input/serio/pcips2.c
drivers/input/serio/ps2-gpio.c
drivers/input/serio/ps2mult.c
drivers/input/serio/q40kbd.c
drivers/input/serio/rpckbd.c
drivers/input/serio/sa1111ps2.c
drivers/input/serio/serio.c
drivers/input/serio/serio_raw.c
drivers/input/serio/serport.c
drivers/input/serio/sun4i-ps2.c
drivers/input/serio/userio.c
drivers/input/serio/xilinx_ps2.c